Add a warning that STARLARK_SEMANTICS changed #12569
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
stale
Issues or PRs that are stale (no activity for 30 days)
team-Starlark-Integration
Issues involving Bazel's integration with Starlark, excluding builtin symbols
type: feature request
Bazel was pretty slow for us, seemingly randomly refetching external dependencies. After we finally found a way to reproduce this, we found that in the marker files of the refetched external dependencies the value of
STARLARK_SEMANTICS
changed. It turns out that we hadbuild --experimental_allow_tags_propagation
in our.bazelrc
file, which should have beencommon --experimental_allow_tags_propagation
. So every time we did abazel query
orbazel info
, and thenbazel build
, external dependencies were refetched.It would be nice if bazel would issue a warning saying that the Starlark semantics changed, and ideally mentioning the cause (change of
--experimental_allow_tags_propagation
in our case), just like it does for discarding the analysis cache.The text was updated successfully, but these errors were encountered: