-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
bazel_6: MODULE.bazel.lock
file is empty
#273500
Labels
0.kind: bug
Something is broken
Comments
Comparing the server.jar from an official bindist and the bazel_6 package, it is apparent that the package one is missing all the gson type adapter classes:
|
avdv
added a commit
to avdv/nixpkgs
that referenced
this issue
Dec 20, 2023
This works around an issue with bootstrapping bazel from scratch, see bazelbuild/bazel#20501 Fixes NixOS#273500
marsam
pushed a commit
that referenced
this issue
Apr 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Using Bazel from nixpkgs in a project with bzlmod enabled, and
--lockfile_mode=update
the generatedMODULE.bazel.lock
file does only contain an empty JSON object.Steps To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/bazelbuild/examples.git
cd examples/bzlmod/01-depend_on_bazel_module
rm .bazelversion
nix run nixpkgs#bazel_6 -- mod deps --lockfile_mode=update
Expected behavior
The generated lock file should be equivalent to the file generated by a vanilla Bazel distribution binary:
Additional context
See also bazelbuild/bazel#19672 where the same problem was reported for Bazel from homebrew.
The formula from homebrew is here:
https://github.com/Homebrew/homebrew-core/blob/fda88ddb4c8ea04adcfa001c56a1b35aebd64e86/Formula/b/bazel.rb
Notify maintainers
@NixOS/bazel
Metadata
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: