Upgrade to Bazel 7#728
Draft
avdv wants to merge 16 commits into
Draft
Conversation
examples/flakes/flake.lock: Update
Flake lock file updates:
• Updated input 'flake-compat':
'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9?narHash=sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm%2B504Ch3sNKLd8%3D' (2023-01-17)
→ 'github:edolstra/flake-compat/5edf11c44bc78a0d334f6334cdaf7d60d732daab?narHash=sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns%3D' (2025-12-29)
• Updated input 'flake-utils':
'github:numtide/flake-utils/3db36a8b464d0c4532ba1c7dda728f4576d6d073?narHash=sha256-XX2f9c3iySLCw54rJ/CZs%2BZK6IQy7GXNY4nSOyu2QG4%3D' (2023-02-13)
→ 'github:numtide/flake-utils/11707dc2f618dd54ca8739b309ec4fc024de578b?narHash=sha256-l0KFg5HjrsfsO/JpG%2Br7fRrqm12kzFHyUHqHCVpMMbI%3D' (2024-11-13)
• Added input 'flake-utils/systems':
'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e?narHash=sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768%3D' (2023-04-09)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/2fb7d749c084890192b2cd08ba264e5e4a14df1b?narHash=sha256-MJ%2BPXNmUyxnMTFoss7G2lEcUY2cfYZM6RudBAL5aX1k%3D' (2023-02-16)
→ 'github:NixOS/nixpkgs/ac62194c3917d5f474c1a844b6fd6da2db95077d?narHash=sha256-16KkgfdYqjaeRGBaYsNrhPRRENs0qzkQVUooNHtoy2w%3D' (2026-01-02)
``` module requires module version bazel_skylib@1.0.3, but got bazel_skylib@1.6.1 in the resolved dependency graph ```
Version 0.3.0 is not compatible with Bazel 7.
When bzlmod is enabled, rules_java tries to configure the local java SDK and unconditionally registers the toolchain. This leads to an error if no javac executable can be found.
In Bazel 6, the `workspace(name = "io_tweag_rules_nixpkgs")` call would implicitly create a local_repository for the given name, but Bazel 7 does no longer do that.
Pinning the cargo dependencies failed with:
Error: Failed to write registry URLs and feature map
Caused by:
0: Failed to get crate index config
1: No such file or directory (os error 2)
So at least 0.58.0 is required, which depends on platforms >= 0.0.11.
Also, disable bzlmod for the time being.
(disable bzlmod for now)
* upgrade rules_go and gazelle * upgrade nixpkgs to nixos-25.05 * use python3 instead of python310 specifically (sphinx is broken for the latter which fails) * note that the example is dated, and should be updated to use bzlmod and (preferably) rules_img or rules_oci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bazel 6 is EOL, we ought to support Bazel 7 and later.