-
Notifications
You must be signed in to change notification settings - Fork 415
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
Allow builifier and buildozer to be run via a rule #316
Comments
Related #170 |
What do you mean by 'rule'? |
ah, I see you want to operate on files in the current workspace. https://blog.bazel.build/2018/04/11/bazel-0.12.html |
I wanted to explore the suggestion of including The (abridged) setup. Running bazel 0.11.1.
The result:
I recognize the error as relating to a change from
A kludge was to modify the name of the WORKSPACE target e.g.
Moving on:
This, I suspect is related to this thread: https://groups.google.com/forum/#!topic/bazel-discuss/EBeFucaAg3A. We don't pull the transitive dep on
Just a bit more yak shaving in the
This almost gets me there, with the exception that I need to upgrade to Bazel 0.12 for Some context - what I'm ultimately aiming for is to have a single rule to re-gazelle our repo and work around issues where otherwise unused test dependencies cause a build-the-world to fail:
|
The experience above is not as great as with Gazelle. Which is trivial to setup and use. That is what I'm after :) |
My attempt at doing this #318 |
Would be great to be able to use buildifier and buildozer via a rule that downloads what's needed and builds these tools automatically.
go get ...
is not the best user experience.Gazelle is very convenient to use https://github.com/bazelbuild/bazel-gazelle#running-gazelle-with-bazel
The text was updated successfully, but these errors were encountered: