Comments (5)
Maybe not as convenient as a flag, but you could use something like buildozer 'set version 1.2.3' //MODULE.bazel:%module
to update the MODULE.bazel file in CI.
from bazel.
@fmeum Thanks, that's certainly helpful for the short term. The main reason it's not a true workaround is that CI should usually have --lockfile_mode=error
set. Changing the contents of MODULE.bazel also means handling lockfile checks.
from bazel.
@fmeum Thanks, that's certainly helpful for the short term. The main reason it's not a true workaround is that CI should usually have
--lockfile_mode=error
set. Changing the contents of MODULE.bazel also means handling lockfile checks.
With Bazel 7.2.0+, changing the root module version (which doesn't affect module version resolution at all) will no longer interfere with --lockfile_mode=error
.
from bazel.
With Bazel 7.2.0+, changing the root module version (which doesn't affect module version resolution at all) will no longer interfere with
--lockfile_mode=error
.
I just tested this after upgrading to Bazel 7.2.1 and still got an error with --lockfile_mode=error
. Running bazel mod deps --lockfile_mode=update
updates the usagesDigest
field for two module extensions: @@rules_jvm_external~//:extensions.bzl%maven
and @@rules_oci~//oci:extensions.bzl%oci
.
from bazel.
You are right, this makes sense: module extensions see the version as declared by any module with a use_extension
for them. Since extensions can perform arbitrary logic based on it, there is no way to change the version without invalidating the lockfile to some extent. Having a flag for it unfortunately wouldn't change this.
from bazel.
Related Issues (20)
- JavaResourceJar broken when enabling path mapping (--experimental_output_paths=strip) HOT 1
- Race conditions with local action deduplication HOT 5
- [7.3.1] Race conditions with local action deduplication
- Bazel run with `-s` should print the full invocation including env vars
- bazel aquery --include_param_files does not work for CppCompile
- Run docker sandbox without copying inputs
- darwin's docker sandbox sets invalid TMPDIR
- [7.4.0] Update extension.md HOT 1
- [Mirror] rules_kotlin HOT 1
- Bazel crashes with java.lang.NullPointerException when vendoring dependencies HOT 7
- [7.3.1] Bazel crashes with java.lang.NullPointerException when vendoring dependencies HOT 1
- [7.3.1] Add a version indicator and selector to all docs pages HOT 1
- Bazel silently exits with status 37 when using --credential_helper with PATH containing an empty element HOT 3
- [7.3.1] Race conditions with local action deduplication
- bazel shouldn't add -fobjc-link-runtime to link params file automatic HOT 6
- Status of Bazel 8.0.0-pre.20240812.1
- Release 8.0.0 - November 2024
- provide a means of comparing local vs. remote execution outputs, and failing on mismatch HOT 1
- failure tests using the analysis test framework break `bazel cquery //...`
- Execution log + remote cache = very long build time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bazel.