Bazel build and query invalidates cache #17914
Labels
more data needed
P2
We'll consider working on this in future. (Assignee optional)
team-Configurability
platforms, toolchains, cquery, select(), config transitions
type: bug
Description of the bug:
The cache seems to be invalidated upon each run when running on an
aspect/rules_js
js_run_devserver
. local reproduction can be done without ibazel by runningThe cache is invalidated between each of these commands. However, if i replace
bazel query
withbazel cquery
, it seems to work just fine.The analysis cache should not be discarded when running bazel query in this case.
bazel cquery
considers select statements butbazel query
does not. That seems to be the cause.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
See above.
Which operating system are you running Bazel on?
macOS 13.3
What is the output of
bazel info release
?release 6.1.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
bazelbuild/bazel-watcher#594
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: