-
Notifications
You must be signed in to change notification settings - Fork 81
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
Use bazel 6 in the CI #1911
Use bazel 6 in the CI #1911
Conversation
🎉 All dependencies have been resolved ! |
- Use the same version of go with bindist as with nix - Use go toolchain from rules_nixpkgs in preparation for bzlmod support because it is not possible to use `is_nix_shell` in the MODULE.bazel file
nodejs-16_x is deprecated in recent nixpkgs versions
This will become the default in bazel 7
7a4889f
to
f15f0a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@@ -48,13 +48,12 @@ rules_proto_dependencies() | |||
rules_proto_toolchains() | |||
|
|||
# For buildifier | |||
# starting from 0.29, rules_go requires bazel >= 4.2.0 | |||
http_archive( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ylecornec do you know which Bazel version rules_go 0.39.1 requires? AFAIK, 0.35 requires at least Bazel 5.1, so we might want to note somewhere that we require at least version x.y for developing on this repo? Or just use a .bazelversion
file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah indeed, it requires at least Bazel 5.3
.
Release 0.38 is the one with the fix for incompatible_disable_starlark_host_transitions
and requiring this version.
Depends on #1909.
This PR updates the CI to bazel version
6.2.1
This is necessary to:
rules_go
to a recent version and activate the--incompatible_disable_starlark_host_transitions
to hopefully resolve Flag --incompatible_disable_starlark_host_transitions will break rules_haskell in Bazel 7.0 #1846.Some notes:
nixpkg
is updated to a version that contains bazel6.2.1
.1.20
, which requires updatingrules_go
and rules_nixpkgs (to a version containing this fix).host
one. This is done in preparation for bzlmod because it is not possible to useis_nix_shell
in theMODULE.bazel
file.