Skip to content

Incremental incorrectness on transitions + build setting defaults #15732

@gregestren

Description

@gregestren

Description of the bug:

When a configuration transition depends on a user-defined flag, the transition doesn't update when the flag's default value updates.

This produces incorrect output for incremental builds (build a target, change the flag default, build the target again).

Workarounds:

  • Force re-analysis by arbitrarily changing some other flag at the command line
  • bazel shutdown to clear the transition cache

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

https://gist.github.com/gregestren/3c6d67a3f23ea2a0b0baac34d9917dfb

Which operating system are you running Bazel on?

Linux

What is the output of bazel info release?

release 5.2.0

If bazel info release returns development 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 ?

n/a

Have you found anything relevant by searching the web?

Forked from #15653 (comment)

Any other information, logs, or outputs that you want to share?

No response

Metadata

Metadata

Assignees

Labels

P1I'll work on this now. (Assignee required)team-Configurabilityplatforms, toolchains, cquery, select(), config transitionstype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions