Skip to content

Commit bdb3fe4

Browse files
committed
Go: skip overlay extraction of unchanged go.mod files
1 parent c35838a commit bdb3fe4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

go/extractor/gomodextractor.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ func (extraction *Extraction) extractGoMod(path string) error {
2020
path = normPath
2121
}
2222

23+
if extraction.OverlayChanges != nil && !extraction.OverlayChanges[path] {
24+
// This go.mod did not change since the base was extracted
25+
return nil
26+
}
27+
2328
extraction.Lock.Lock()
2429
if extraction.SeenGoMods[path] {
2530
extraction.Lock.Unlock()

0 commit comments

Comments
 (0)