Skip to content

Conversation

@laramiel
Copy link
Contributor

@laramiel laramiel commented Apr 25, 2025

Fix incorrect rewrites of @foo//:foo. Encountered when renaming @com_google_re2//:re2 to @re2//:re2.

buildifier should leave these as-is since in @re2//:re2, the repository is re2, the package is the empty string, and the target is re2, and it is not correct to assume that repositories have stable names.

#1354

Copy link
Member

@vladmos vladmos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@vladmos vladmos merged commit 870ee1b into bazelbuild:main Apr 25, 2025
2 checks passed
@laramiel laramiel deleted the laramiel-patch-1 branch April 25, 2025 15:28
@Wyverald
Copy link
Member

please revert this. this is a long-standing label syntax (and documented) that the community has come to rely on.

Wyverald added a commit that referenced this pull request Apr 25, 2025
vladmos pushed a commit that referenced this pull request Apr 25, 2025
oreflow pushed a commit that referenced this pull request May 5, 2025
* Keep targets like "@foo//:foo" formatted as-is.

See #1354

* Update 019.build.golden

Update golden file.
oreflow pushed a commit that referenced this pull request May 5, 2025
oreflow pushed a commit that referenced this pull request May 5, 2025
* Keep targets like "@foo//:foo" formatted as-is.

See #1354

* Update 019.build.golden

Update golden file.
oreflow pushed a commit that referenced this pull request May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants