Skip to content

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

Closed
iancha1992 wants to merge 1 commit intobazelbuild:release-7.1.0from
iancha1992:cp21188
Closed

[7.1.0] Allow @repo_name labels in override attributes#21314
iancha1992 wants to merge 1 commit intobazelbuild:release-7.1.0from
iancha1992:cp21188

Conversation

@iancha1992
Copy link
Copy Markdown
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 requested a review from Wyverald February 12, 2024 22:21
@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 enabled auto-merge February 12, 2024 22:22
@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
Copy Markdown
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