Skip to content

Fix bzl_library reordering#627

Open
keith wants to merge 1 commit into
bazelbuild:mainfrom
keith:ks/fix-bzl_library-reordering
Open

Fix bzl_library reordering#627
keith wants to merge 1 commit into
bazelbuild:mainfrom
keith:ks/fix-bzl_library-reordering

Conversation

@keith

@keith keith commented Jun 17, 2026

Copy link
Copy Markdown
Member

Previously depending on other context in the BUILD file this gazelle
plugin would move bzl_library targets even if they didn't change at all.

Previously depending on other context in the BUILD file this gazelle
plugin would move bzl_library targets even if they didn't change at all.

@tetromino tetromino left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you for taking a look at this! The existing logic was obviously wrong in multiple ways.

However, for your proposed change, I don't understand why the canonical name matters: if all of a bzl_library's sources files have been deleted, shouldn't we delete the bzl_library target regardless of what it is named?

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.

2 participants