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

Gazelle: fix deletion of rules with deps #1130

Merged
merged 2 commits into from
Dec 13, 2017

Conversation

jayconrod
Copy link
Contributor

Rules are deleted after they are merged with empty rules produced by
the generator when they have no attributes other than "name" and
"visibility".

An earlier change split merging into two phases: everything except
"deps", and then "deps".

With this change, both merge phases have a chance to delete
rules. This means that rules that had deps but are now empty will be
deleted.

Fixes bazel-contrib/bazel-gazelle#22

Jay Conrod added 2 commits December 12, 2017 15:57
Rules are deleted after they are merged with empty rules produced by
the generator when they have no attributes other than "name" and
"visibility".

An earlier change split merging into two phases: everything except
"deps", and then "deps".

With this change, both merge phases have a chance to delete
rules. This means that rules that had deps but are now empty will be
deleted.

Fixes bazel-contrib/bazel-gazelle#22
@jayconrod
Copy link
Contributor Author

Jenkins test this please

@jayconrod jayconrod merged commit f74269b into bazel-contrib:master Dec 13, 2017
@jayconrod jayconrod deleted the gazelle-fix-delete-deps branch December 13, 2017 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants