-
Notifications
You must be signed in to change notification settings - Fork 4.4k
--run_under discards analysis cache #10782
Copy link
Copy link
Closed
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)team-Configurabilityplatforms, toolchains, cquery, select(), config transitionsplatforms, toolchains, cquery, select(), config transitionstype: feature request
Description
Description of the problem / feature request:
When I use bazel run --run_under //sometarget and then bazel build //sometarget after:
INFO: Build option --run_under has changed, discarding analysis cache.
Which completely discards all repository rules as well.
Feature requests: what underlying problem are you trying to solve with this feature?
Just trying to run stuff to test artifacts.
--run_under is not even an option to build, so why does it invalidate the analysis cache. It’s also only relevant to the execution of a generated artifact, so I don’t see why it should influence the build at all.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
as above
What operating system are you running Bazel on?
Nixos 20.01
What's the output of bazel info release?
bazel info release
INFO: Invocation ID: 453a0027-23cd-4bbf-a227-2f5045d96fbd
release 2.0.0- (@Non-Git)
If bazel info release returns "development version" or "(@Non-Git)", tell us how you built Bazel.
nixpkgs
Have you found anything relevant by searching the web?
doesn’t seem to be an issue in the tracker
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)team-Configurabilityplatforms, toolchains, cquery, select(), config transitionsplatforms, toolchains, cquery, select(), config transitionstype: feature request