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

Buildifier support on NixOS with bzlmod #2126

Open
avdv opened this issue Feb 21, 2024 · 1 comment
Open

Buildifier support on NixOS with bzlmod #2126

avdv opened this issue Feb 21, 2024 · 1 comment

Comments

@avdv
Copy link
Member

avdv commented Feb 21, 2024

Is your feature request related to a problem? Please describe.

We are using Buildifier to keep our build files properly formatted and for linting.

Buildifier requires a go SDK, but currently the rules_go module always uses the default_go_sdk toolchain which will not run on NixOS.

See bazel-contrib/bazel-gazelle#1469

Describe the solution you'd like

Find a way to run buildifier in a NixOS context with bzlmod enabled.

@avdv
Copy link
Member Author

avdv commented Feb 21, 2024

Note, the official go SDK is statically linked for linux x86_64 (at least the latest version 1.22) and does run unchanged on NixOS. It might just work to request / use that version on all OSes.

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