-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bazel: Support local_path_override
#8810
Comments
Supporting this feature seems to be a bit tricky. Bazel does provide some of the override information in the build file:
BUT:
I asked the Bazel's Slack channel if there were alternative to parsing the It sorts of work but there is a bug with it: They recommended a workaround but I find it a bit hackish. Any opinion ? |
Local path overrides are dependencies for which the sourcecode comes from the project repository (see [1]). Since the information relative to these overrides is not present in the Bazel lock file, it has to be extracted from the MODULE.basel file instead. To achieve the latter, this commit uses the tool `buildozer`. Fixes oss-review-toolkit#8810. [1]: https://bazel.build/rules/lib/globals/module#local_path_override Signed-off-by: Nicolas Nobelis <[email protected]>
Local path overrides are dependencies for which the sourcecode comes from the project repository (see [1]). Since the information relative to these overrides is not present in the Bazel lock file, it has to be extracted from the MODULE.basel file instead. To achieve the latter, this commit uses the tool `buildozer`. Fixes oss-review-toolkit#8810. [1]: https://bazel.build/rules/lib/globals/module#local_path_override Signed-off-by: Nicolas Nobelis <[email protected]>
Local path overrides are dependencies for which the sourcecode comes from the project repository (see [1]). Since the information relative to these overrides is not present in the Bazel lock file, it has to be extracted from the MODULE.basel file instead. To achieve the latter, this commit uses the tool `buildozer`. Fixes oss-review-toolkit#8810. [1]: https://bazel.build/rules/lib/globals/module#local_path_override Signed-off-by: Nicolas Nobelis <[email protected]>
Local path overrides are dependencies for which the sourcecode comes from the project repository (see [1]). Since the information relative to these overrides is not present in the Bazel lock file, it has to be extracted from the MODULE.basel file instead. To achieve the latter, this commit uses the tool `buildozer`. Fixes oss-review-toolkit#8810. [1]: https://bazel.build/rules/lib/globals/module#local_path_override Signed-off-by: Nicolas Nobelis <[email protected]>
Local path overrides are dependencies for which the sourcecode comes from the project repository (see [1]). Since the information relative to these overrides is not present in the Bazel lock file, it has to be extracted from the MODULE.basel file instead. To achieve the latter, this commit uses the tool `buildozer`. Fixes oss-review-toolkit#8810. [1]: https://bazel.build/rules/lib/globals/module#local_path_override Signed-off-by: Nicolas Nobelis <[email protected]>
Local path overrides are dependencies for which the sourcecode comes from the project repository (see [1]). Since the information relative to these overrides is not present in the Bazel lock file, it has to be extracted from the MODULE.basel file instead. To achieve the latter, this commit uses the tool `buildozer`. Fixes oss-review-toolkit#8810. [1]: https://bazel.build/rules/lib/globals/module#local_path_override Signed-off-by: Nicolas Nobelis <[email protected]>
The user can specify that a dependency should come from a certain directory on local disk.
See https://bazel.build/rules/lib/globals/module#local_path_override.
Example in MODULE.bazel:
ORT should support this alternate locations for downloading the source code.
@haikoschol FYI
The text was updated successfully, but these errors were encountered: