Merge pull request #287 from colincross/mutator_ninja_file_deps

Fix missing dependencies from mutators
This commit is contained in:
colincross 2020-03-03 14:31:17 -08:00 committed by GitHub
commit 03d3ee51f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2198,7 +2198,7 @@ func (c *Context) runMutator(config interface{}, mutator *mutatorInfo,
newVariationsCh <- mctx.newVariations newVariationsCh <- mctx.newVariations
} }
if len(mctx.reverseDeps) > 0 || len(mctx.replace) > 0 || len(mctx.rename) > 0 || len(mctx.newModules) > 0 { if len(mctx.reverseDeps) > 0 || len(mctx.replace) > 0 || len(mctx.rename) > 0 || len(mctx.newModules) > 0 || len(mctx.ninjaFileDeps) > 0 {
globalStateCh <- globalStateChange{ globalStateCh <- globalStateChange{
reverse: mctx.reverseDeps, reverse: mctx.reverseDeps,
replace: mctx.replace, replace: mctx.replace,