An open API service indexing awesome lists of open source software.

https://github.com/aherrmann/bazel-configuration-rebuild


https://github.com/aherrmann/bazel-configuration-rebuild

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# Duplicate Builds with Configuration Transitions

The target `//:cat` is independent of the user defined build flag `//:flag`.
The target `//:flag_cat` on the other hand depends on the value of the flag and
on `//:cat` as well.

The target `//:cat` is only built once, and cached under the same action cache
key, if the configuration is set via command-line flag.

```
$ bazel clean --expunge; bazel build //:flag_cat --disk_cache=.cache/default --build_event_publish_all_actions --build_event_json_file=default.json

$ bazel clean --expunge; bazel build //:flag_cat --//:flag=different_flag --disk_cache=.cache/different --build_event_publish_all_actions --build_event_json_file=different.json

$ jq 'select(.id.actionCompleted.label == "//:cat")'