-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Changing starlark build setting always discards the analysis cache. #13591
Copy link
Copy link
Open
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)team-Configurabilityplatforms, toolchains, cquery, select(), config transitionsplatforms, toolchains, cquery, select(), config transitionstype: feature request
Description
Description of the problem / feature request:
Changing starlark build settings always discards the analysis cache. It would be nice to have a way of disabling that for certain build settings.
Feature requests: what underlying problem are you trying to solve with this feature?
When using starlark build settings that are limited to certain targets, it would be nice if the analysis cache could be maintained. Similar to --test_filter, for certain build settings, the values of the settings might be changed often, but would only cause a small number of additional configured targets to have to be cached. That's why --trim_test_configuration was introduced.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Create a starlark build setting, change its value, observe INFO: Build option --//tools/settings:your_setting has changed, discarding analysis cache.
What operating system are you running Bazel on?
> sw_vers
ProductName: macOS
ProductVersion: 11.3.1
BuildVersion: 20E241
What's the output of bazel info release?
> bazel info release
INFO: Invocation ID: 781ccd26-b559-444f-976d-678b37d89b18
release 4.1.0- (@non-git)
If bazel info release returns "development version" or "(@Non-Git)", tell us how you built Bazel.
Have you found anything relevant by searching the web?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)team-Configurabilityplatforms, toolchains, cquery, select(), config transitionsplatforms, toolchains, cquery, select(), config transitionstype: feature request