-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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: 0.26.1 -> 0.27.0 #63532
bazel: 0.26.1 -> 0.27.0 #63532
Conversation
That's OK. I screwed stuff by a last minute refactoring, but that's OK now. |
Duplicate of #63451. |
Ah, can you cherry pick the first commit of #63451? |
I rather prefer fixing the test instead. I'll push that in a few minutes. |
@Profpatsch I've pushed the repair of the Offline you suggested that I refactor the But I totally agree that later we may move all the tests in |
Yeah, but for that we need to turn the |
@GrahamcOfBorg build bazel.tests |
I'm not sure I understand this sentence. Is there something I need to do to close this PR? |
@GrahamcOfBorg build bazel.tests I've rebased on master and fixed the deps sha256 to fix the darwin build failure. |
@GrahamcOfBorg build bazel.tests |
I amended some style only changes to match nixpkgs style guide, based on recommendations by @flokli. |
- Fixs for newly introduced bin/bash hardcoded reference - Bazel now references `remote_java_tools_xxx` which contains prebuilt binaries. We prefetch them, fix them, and force bazel to use the fixed repository. It also closes NixOS#63096
All the dependencies of this phase are prefetched and provided to the bazel environment using --override_repository.
Done. You are right. I used
The bazel docs says that |
Do we run all tests? I see the |
@guibou can you also include a Java test, similar to the existing Python test? Having a test will ensure Bazel will not be updated broken again. |
@kalbasit There is already a java test, it was in the disabled (but now re-enabled) |
We can do better, for sure. The point of this PR was to fix the bazel currently included in nixpkgs. I did the upgrade to bazel 0.27 at the same time because I see no point duplicating effort here. There is a lot of other stuffs we can do to get a perfect bazel nix derivation, but I think that's not the priority now considering that the bazel which is currently provided by nixpkgs is broken. |
@GrahamcOfBorg build bazel.tests |
The derivation ran
I guess this is enough coverage to see at a quick glimpse if anything is utterly broken. We can probably add more tests in a later PR, nothing that should block this bump, given it also fixes the bazel build currently being entirely broken. |
remote_java_tools_xxx
which contains prebuiltbinaries. We prefetch them, fix them, and force bazel to use the
fixed repository.
It also closes #63096
Motivation for this change
Bazel upgrade and bug fixing.
Note: instead of fixing #63096 and upgrading to bazel in two separates commits, I've done everything in once. I think it reduce the pull request pressure.
There is no test which proves that I really fixed stuffs, but I'm now able to build rules_haskell with bazel 0.27, which was not possible due to #63096. See tweag/rules_haskell#956
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)