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

[7.1.0] Allow @repo_name labels in override attributes #21314

Closed
wants to merge 1 commit into from

Conversation

iancha1992
Copy link
Member

This is made possible by a refactoring that moves the label parsing of RepoSpec attributes coming from module overrides as well as .bzl file labels containing repo rules from BzlmodRepoRuleFunction into ModuleFileGlobals. Also adds a TODO to BzlmodRepoRuleFunction to further simplify the logic after the next lockfile version bumps, as old lockfiles are now the only source of non-canonical labels in RepoSpecs.

Work towards #19301

Closes #21188.

Commit f0ab82d

PiperOrigin-RevId: 605517195
Change-Id: Id34c81fa9474fef2354ff1fbc898e518a9044640

This is made possible by a refactoring that moves the label parsing of `RepoSpec` attributes coming from module overrides as well as `.bzl` file labels containing repo rules from `BzlmodRepoRuleFunction` into `ModuleFileGlobals`. Also adds a TODO to `BzlmodRepoRuleFunction` to further simplify the logic after the next lockfile version bumps, as old lockfiles are now the only source of non-canonical labels in `RepoSpec`s.

Work towards bazelbuild#19301

Closes bazelbuild#21188.

PiperOrigin-RevId: 605517195
Change-Id: Id34c81fa9474fef2354ff1fbc898e518a9044640
@iancha1992 iancha1992 added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Feb 12, 2024
@iancha1992 iancha1992 marked this pull request as ready for review February 12, 2024 22:21
@iancha1992 iancha1992 requested a review from a team as a code owner February 12, 2024 22:21
@iancha1992 iancha1992 closed this Feb 12, 2024
auto-merge was automatically disabled February 12, 2024 22:29

Pull request was closed

@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Feb 12, 2024
@iancha1992
Copy link
Member Author

Dupe of #21313

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.

2 participants