Skip to content
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

[6.3.2] Ensure that extension unique names followed by ~ are prefix-free #19167

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

bazel-io
Copy link
Member

@bazel-io bazel-io commented Aug 3, 2023

Fixes errors such as the following when a module provides two extensions that share a name:

ERROR: /my/workspace/library_path/BUILD:4:13: no such package '@_main~my_ext~2~xyz//':
The repository '@_main~my_ext~2~xyz' could not be resolved:
Repository '@_main~my_ext~2~xyz' is not defined and referenced by '//library_path:library_name'
ERROR: Analysis of target '//my_path:my_target' failed; build aborted:

This was a consequence of the extension unique names followed by ~ being

_main~my_ext~2~
_main~my_ext~

since 19a9710. Before, they were of the following form, which was prefix-free:

_main~my_ext2~
_main~my_ext~

Fixes #19155

Closes #19156.

Commit 896b358

PiperOrigin-RevId: 553567725
Change-Id: I98650663fea3bfee77752a06a99132e507d91aef

Fixes errors such as the following when a module provides two extensions that share a name:

```
ERROR: /my/workspace/library_path/BUILD:4:13: no such package '@_main~my_ext~2~xyz//':
The repository '@_main~my_ext~2~xyz' could not be resolved:
Repository '@_main~my_ext~2~xyz' is not defined and referenced by '//library_path:library_name'
ERROR: Analysis of target '//my_path:my_target' failed; build aborted:
```

This was a consequence of the extension unique names followed by `~` being

```
_main~my_ext~2~
_main~my_ext~
```

since 19a9710. Before, they were of the following form, which was prefix-free:

```
_main~my_ext2~
_main~my_ext~
```

Fixes bazelbuild#19155

Closes bazelbuild#19156.

PiperOrigin-RevId: 553567725
Change-Id: I98650663fea3bfee77752a06a99132e507d91aef
@bazel-io bazel-io added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Aug 3, 2023
@google-cla
Copy link

google-cla bot commented Aug 3, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Wyverald Wyverald disabled auto-merge August 3, 2023 22:05
@Wyverald Wyverald merged commit 35e4bbd into bazelbuild:release-6.3.2 Aug 3, 2023
28 checks passed
@iancha1992 iancha1992 removed the awaiting-review PR is awaiting review from an assigned reviewer label Aug 3, 2023
copybara-service bot pushed a commit that referenced this pull request Aug 8, 2023
Baseline:  283ed36

Release Notes:

+ Ensure that extension unique names followed by `~` are prefix-free (#19167)
+ Lockfile updates & fixes (#19153) (#19175)
+ Empty commit to try to fix CI issue (#19177)

Acknowledgements:

This release contains contributions from many people at Google, as well as bazel.build machine account, Fabian Meumertzheim.
chiragramani pushed a commit to uber-common/bazel that referenced this pull request Aug 11, 2023
Baseline:  283ed36

Release Notes:

+ Ensure that extension unique names followed by `~` are prefix-free (bazelbuild#19167)
+ Lockfile updates & fixes (bazelbuild#19153) (bazelbuild#19175)
+ Empty commit to try to fix CI issue (bazelbuild#19177)

Acknowledgements:

This release contains contributions from many people at Google, as well as bazel.build machine account, Fabian Meumertzheim.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants