Go: skip overlay extraction of unchanged go.mod files

This commit is contained in:
Nick Rolfe
2025-09-02 16:59:30 +01:00
parent 604df2125d
commit 99236f7877

View File

@@ -20,6 +20,11 @@ func (extraction *Extraction) extractGoMod(path string) error {
path = normPath
}
if extraction.OverlayChanges != nil && !extraction.OverlayChanges[path] {
// This go.mod did not change since the base was extracted
return nil
}
extraction.Lock.Lock()
if extraction.SeenGoMods[path] {
extraction.Lock.Unlock()