-
Notifications
You must be signed in to change notification settings - Fork 381
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
wanted: bazelbuild/buildtools #380
Comments
It is available via |
I'm not clear why this should be a Bazel Module. Why is this different from any other Go library? Are there any bazel rules or starlark modules to be loaded from it? |
There are buildifier rules:
|
@alexeagle I found this issue through the linked buildtools ticket. Trying to use buildifier from a modular Bazel project is a bit of a hassle and having a module here would be a great help. It is useful for non-go projects, and I'd prefer that developers don't have to install Go themselves to run buildifier. (If Bazel installs it internally through rules_go that's fine.) |
@AttilaTheFun Even as a module |
@fmeum I don’t mind building from source. It would be cached most of the time. |
@fmeum I would also expect to be built from source like any other module. |
We do have rules_go support for having a Bazel module be a Go module, so there is no real technical blocker or potential source of linker errors. However, buildtools currently uses a tag scheme that is incompatible with the Go module release process: it only has tags of the form @vladmos We had a similar discussion a while ago. Would it be feasible for |
What is the status of this issue? Any other topics blocking it? I see in the tags that all latest tags use the v version https://github.com/bazelbuild/buildtools/tags |
The problem with versioning hasn't been resolved yet: While If we fix keith/buildifier-prebuilt#99, would that solve the issue for you? That does sound the easiest path forward. |
To me that would be an acceptable solution. I'm not aware of a real use case where building from source would be important. |
I've looked around for this as I'm exploring migration to bazel 8. I know freebsd isn't an officially supported platform, but due to the lack of freebsd binaries in I figured I'd drop that grpc-gateway example here in case others prefer to build from source and need a reference for how to accomplish it. |
@fmeum Does https://github.com/bazel-contrib/rules_go/blob/master/docs/go/core/bzlmod.md#depending-on-tools also work for buildifier? |
Yes, it should work for any Go |
Module location
https://github.com/bazelbuild/buildtools
Link to bzlmod issue in the module's repository
bazelbuild/buildtools#1124
Any other context to provide?
No response
Fund our work
The text was updated successfully, but these errors were encountered: