]> Cypherpunks.ru repositories - goredo.git/blobdiff - main.go
Cache already parsed .rec during collectDeps
[goredo.git] / main.go
diff --git a/main.go b/main.go
index 8c95d84bd3ed76135ce08086ebb595498b8635e0..0fb48d6819911eed9647a20611bf9c50580c61a1 100644 (file)
--- a/main.go
+++ b/main.go
@@ -455,7 +455,7 @@ CmdSwitch:
                }
                deps := map[string]map[string]struct{}{}
                for _, tgt := range tgtsKnown {
-                       collectDeps(Cwd, tgt, 0, deps, true)
+                       collectDeps(Cwd, tgt, 0, deps, true, map[string]struct{}{})
                }
                seen := map[string]struct{}{}
                for _, tgt := range tgts {