Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 716
chore: make gazelle bcr tests compatible with bcr presubmit environment#3365
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
075d3112a8c357637fa4b40c361eFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| bazel-bin | ||
| bazel-gazelle | ||
| bazel-out | ||
| bazel-testlogs | ||
| examples/bzlmod_build_file_generation/bazel-bin | ||
| examples/bzlmod_build_file_generation/bazel-bzlmod_build_file_generation | ||
| examples/bzlmod_build_file_generation/bazel-out | ||
| examples/bzlmod_build_file_generation/bazel-testlog |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -13,26 +13,28 @@ module( | ||
| # For typical setups you set the version. | ||
| # See the releases page for available versions. | ||
| # https://github.com/bazel-contrib/rules_python/releases | ||
| bazel_dep(name = "rules_python", version = "0.0.0") | ||
| bazel_dep(name = "rules_python", version = "1.0.0") | ||
| # NOTE: This override is removed for BCR presubmits and the version | ||
| # specified by bazel_dep() is used instead. | ||
| # The following loads rules_python from the file system. | ||
| # For usual setups you should remove this local_path_override block. | ||
| local_path_override( | ||
| module_name = "rules_python", | ||
| path = "../..", | ||
| path = "../../..", | ||
| ) | ||
| # The following stanza defines the dependency rules_python_gazelle_plugin. | ||
| # For typical setups you set the version. | ||
| # See the releases page for available versions. | ||
| # https://github.com/bazel-contrib/rules_python/releases | ||
| bazel_dep(name = "rules_python_gazelle_plugin", version = "0.0.0") | ||
| bazel_dep(name = "rules_python_gazelle_plugin", version = "1.5.0") | ||
rickeylev marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| # The following starlark loads the gazelle plugin from the file system. | ||
| # For usual setups you should remove this local_path_override block. | ||
| local_path_override( | ||
| module_name = "rules_python_gazelle_plugin", | ||
| path = "../../gazelle", | ||
| path = "../..", | ||
| ) | ||
| # The following stanza defines the dependency for gazelle | ||
| @@ -84,7 +86,7 @@ use_repo(pip, "pip") | ||
| # This project includes a different module that is on the local file system. | ||
| # Add the module to this parent project. | ||
| bazel_dep(name = "other_module", version = "", repo_name = "our_other_module") | ||
| bazel_dep(name = "other_module", version = "0.0.0", repo_name = "our_other_module") | ||
| local_path_override( | ||
| module_name = "other_module", | ||
| path = "other_module", | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| module( | ||
| name = "other_module", | ||
| ) | ||
| # Version doesn't matter because the root module overrides it, | ||
| # but Bazel requires it exist in the registry. | ||
| bazel_dep(name = "rules_python", version = "1.0.0") |
Uh oh!
There was an error while loading. Please reload this page.