-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
Currently SCons isn't aware of bazel files. The SCons cache isn't invalidated and won't trigger a rebuild whenever a bazel build definition or rule is changed.
To address this, tag all of the Bazel decorated SCons build definitions with AlwaysBuild and NoCache. This will make SCons always ask Bazel to build any converted targets regardless of the state of the cache.
This won't meaningfully increase the duration of the build since bazel maintains its own remote (or local) cache. Effectively, scons will ask bazel to build the target and bazel will do nothing but copy over the cached artifact.