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 should explain what is wrong #792

Closed
jayconrod opened this issue Sep 5, 2017 · 1 comment
Closed

Gazelle fix should explain what is wrong #792

jayconrod opened this issue Sep 5, 2017 · 1 comment

Comments

@jayconrod
Copy link
Contributor

When a BUILD file needs to be fixed, gazelle fix just emits a warning without explaining what's wrong with it. This could be something as trivial as loaded symbols being out of order.

Our warning should explain what needs to be fixed. We should not emit a warning for trivial problems that won't interfere with later operations (loaded symbol ordering).

@jayconrod jayconrod added bug and removed enhancement labels Sep 5, 2017
jayconrod pushed a commit to jayconrod/rules_go that referenced this issue Sep 8, 2017
fixLoads is now called in MergeWithExisting instead of FixLoads. This
will remove symbols that are no longer needed after empty rules are
deleted.

This also eliminates warnings that files need to be fixed if they only
need load changes.

Related bazel-contrib#792
jayconrod added a commit that referenced this issue Sep 12, 2017
fixLoads is now called in MergeWithExisting instead of FixLoads. This
will remove symbols that are no longer needed after empty rules are
deleted.

This also eliminates warnings that files need to be fixed if they only
need load changes.

Related #792
@jayconrod
Copy link
Contributor Author

Migrated to bazel-contrib/bazel-gazelle#58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant