-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
+
instead of ~
as the canonical repo name separator
This PR essentially flips `--incompatible_use_plus_in_repo_names` (introduced in #23103) to true on master. In addition, it graveyards the flag, removes all logic to use `~`, and fixes all tests to use `+` instead. Closes #23098. RELNOTES: The format of canonical repo names has changed to use plus (`+`) instead of tilde (`~`). Effectively, this flips the flag `--incompatible_use_plus_in_repo_names` to true, and the flag is now a no-op (i.e. cannot be "unflipped"). PiperOrigin-RevId: 657913333 Change-Id: Ia97609049871db7a914fe3129556cf843d06f571
- Loading branch information
1 parent
dde9740
commit 60924fd
Showing
93 changed files
with
1,077 additions
and
1,185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ function test_synthetic_merge() { | |
"envVariables": {}, | ||
"generatedRepoSpecs": { | ||
"rbe_ubuntu2004": { | ||
"bzlFile": "@@_main~bazel_test_deps~bazelci_rules//:rbe_repo.bzl", | ||
"bzlFile": "@@+bazel_test_deps+bazelci_rules//:rbe_repo.bzl", | ||
"ruleClassName": "rbe_preconfig", | ||
"attributes": { | ||
"toolchain": "ubuntu2004" | ||
|
@@ -77,12 +77,12 @@ function test_synthetic_merge() { | |
[ | ||
"", | ||
"bazelci_rules", | ||
"_main~bazel_test_deps~bazelci_rules" | ||
"+bazel_test_deps+bazelci_rules" | ||
] | ||
] | ||
} | ||
}, | ||
"@@rules_python~//python/extensions:python.bzl%python": { | ||
"@@rules_python+//python/extensions:python.bzl%python": { | ||
"general": { | ||
"repo1": "old_args" | ||
} | ||
|
@@ -102,12 +102,12 @@ EOF | |
"[email protected]": "also dubious" | ||
}, | ||
"moduleExtensions": { | ||
"@@rules_python~//python/extensions:python.bzl%python": { | ||
"@@rules_python+//python/extensions:python.bzl%python": { | ||
"general": { | ||
"repo1": "new_args" | ||
} | ||
}, | ||
"@@rules_python~//python/extensions/private:internal_deps.bzl%internal_deps": { | ||
"@@rules_python+//python/extensions/private:internal_deps.bzl%internal_deps": { | ||
"os:linux,arch:aarch64": { | ||
"repo2": "aarch64_args" | ||
} | ||
|
@@ -135,7 +135,7 @@ EOF | |
"envVariables": {}, | ||
"generatedRepoSpecs": { | ||
"rbe_ubuntu2004": { | ||
"bzlFile": "@@_main~bazel_test_deps~bazelci_rules//:rbe_repo.bzl", | ||
"bzlFile": "@@+bazel_test_deps+bazelci_rules//:rbe_repo.bzl", | ||
"ruleClassName": "rbe_preconfig", | ||
"attributes": { | ||
"toolchain": "ubuntu2004" | ||
|
@@ -146,17 +146,17 @@ EOF | |
[ | ||
"", | ||
"bazelci_rules", | ||
"_main~bazel_test_deps~bazelci_rules" | ||
"+bazel_test_deps+bazelci_rules" | ||
] | ||
] | ||
} | ||
}, | ||
"@@rules_python~//python/extensions:python.bzl%python": { | ||
"@@rules_python+//python/extensions:python.bzl%python": { | ||
"general": { | ||
"repo1": "old_args" | ||
} | ||
}, | ||
"@@rules_python~//python/extensions/private:internal_deps.bzl%internal_deps": { | ||
"@@rules_python+//python/extensions/private:internal_deps.bzl%internal_deps": { | ||
"os:linux,arch:amd64": { | ||
"repo2": "amd64_args" | ||
} | ||
|
@@ -186,7 +186,7 @@ EOF | |
"envVariables": {}, | ||
"generatedRepoSpecs": { | ||
"rbe_ubuntu2004": { | ||
"bzlFile": "@@_main~bazel_test_deps~bazelci_rules//:rbe_repo.bzl", | ||
"bzlFile": "@@+bazel_test_deps+bazelci_rules//:rbe_repo.bzl", | ||
"ruleClassName": "rbe_preconfig", | ||
"attributes": { | ||
"toolchain": "ubuntu2004" | ||
|
@@ -197,17 +197,17 @@ EOF | |
[ | ||
"", | ||
"bazelci_rules", | ||
"_main~bazel_test_deps~bazelci_rules" | ||
"+bazel_test_deps+bazelci_rules" | ||
] | ||
] | ||
} | ||
}, | ||
"@@rules_python~//python/extensions:python.bzl%python": { | ||
"@@rules_python+//python/extensions:python.bzl%python": { | ||
"general": { | ||
"repo1": "new_args" | ||
} | ||
}, | ||
"@@rules_python~//python/extensions/private:internal_deps.bzl%internal_deps": { | ||
"@@rules_python+//python/extensions/private:internal_deps.bzl%internal_deps": { | ||
"os:linux,arch:aarch64": { | ||
"repo2": "aarch64_args" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -395,7 +395,7 @@ use_repo(toolchains, my_jdk="remotejdk17_linux") | |
## [email protected]: | ||
# <builtin> | ||
http_archive( | ||
name = "rules_cc~", | ||
name = "rules_cc+", | ||
urls = ["https://bcr.bazel.build/test-mirror/github.com/bazelbuild/rules_cc/releases/download/0.0.1/rules_cc-0.0.1.tar.gz", "https://github.com/bazelbuild/rules_cc/releases/download/0.0.1/rules_cc-0.0.1.tar.gz"], | ||
integrity = "sha256-Tcy/0iwN7xZMj0dFi9UODHFI89kgAs20WcKpamhJgkE=", | ||
strip_prefix = "", | ||
|
@@ -408,7 +408,7 @@ use_repo(toolchains, my_jdk="remotejdk17_linux") | |
## stardoc: | ||
# <builtin> | ||
http_archive( | ||
name = "stardoc~", | ||
name = "stardoc+", | ||
urls = ["https://bcr.bazel.build/test-mirror/github.com/bazelbuild/stardoc/releases/download/0.5.0/stardoc-0.5.0.tar.gz", "https://github.com/bazelbuild/stardoc/releases/download/0.5.0/stardoc-0.5.0.tar.gz"], | ||
integrity = "sha256-yXlNzIAmow/2fPfPkeviRcopSyCwcYRdEsGSr+JDrXI=", | ||
strip_prefix = "", | ||
|
@@ -443,7 +443,7 @@ use_repo(toolchains, my_jdk="remotejdk17_linux") | |
imported from some specific extension as part of the dependency graph. | ||
```sh | ||
bazel mod show_extension @@rules_java~5.0.0//java:extensions.bzl%toolchains | ||
bazel mod show_extension @@rules_java+5.0.0//java:extensions.bzl%toolchains | ||
``` | ||
```none | ||
|
@@ -538,7 +538,7 @@ use_repo(toolchains, my_jdk="remotejdk17_linux") | |
## @remote_java_tools: | ||
# <builtin> | ||
http_archive( | ||
name = "rules_java~~toolchains~remote_java_tools", | ||
name = "rules_java++toolchains+remote_java_tools", | ||
urls = ["https://mirror.bazel.build/bazel_java_tools/releases/java/v11.5/java_tools-v11.5.zip", "https://github.com/bazelbuild/java_tools/releases/download/java_v11.5/java_tools-v11.5.zip"], | ||
sha256 = "b763ee80e5754e593fd6d5be6d7343f905bc8b73d661d36d842b024ca11b6793", | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.