-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
MODULE.bazel.lock file is not updated when using bazel_features
and setting os|arch_dependent
#19662
Comments
I couldn't reproduce this with the given instructions, I got an empty diff. @Wyverald @SalmaSamy Could one of you try their luck? There are two known issues with lockfile staleness for which fixes will be merged soon. |
I also can't reproduce; the two sets of commands yield exactly the same lockfile for me too. This is macOS 13.6 on an M1 Macbook. |
It seems that I cannot reproduce it with the latest My repro script: #!/bin/bash
export USE_BAZEL_VERSION=${USE_BAZEL_VERSION:-last_green}
git checkout f2a4dd5
bazel test --lockfile_mode=update ...
# press Ctrl-C to abort requirements_test
git checkout main
bazel test --lockfile_mode=update ...
mv MODULE.bazel.lock MODULE.bazel.lock.stale
bazel clean --async
bazel test --lockfile_mode=update ...
echo "Differences between the lock:"
diff MODULE.bazel.lock.stale MODULE.bazel.lock
echo "pip.parse extension should be platform dependent and the following text should have that metadata there:"
grep -A5 "%pip" MODULE.bazel.lock
Note, that with
|
The repro doesn't include |
I assume that this is fixed, @aignas please let us know if that shouldn't be the case. |
Description of the bug:
I noticed the behavior that in
rules_python
examples/bzlmod
executing:yields to a different
MODULE.bazel.lock
file than just doingSee conversation:
bazelbuild/rules_python#1433 (comment)
cc: @fmeum
Which category does this issue belong to?
Core
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
See the description above.
Which operating system are you running Bazel on?
Linux
What is the output of
bazel info release
?development version
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.USE_BAZEL_VERSION=last_green
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: