by SolarNet · 7y ago · 0 comments
Note that adding and removing files (including through a glob) does always cause a rebuild though (because it's a change of the rule). This is a deficiency of bazel.
The other nice thing is you get dead code elimination for free.
The other place this is obvious is with tests. If you have a unit test per source, a change to any source will return all tests, splitting reduces this.