mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Go: skip overlay extraction of unchanged go.mod files
This commit is contained in:
@@ -20,6 +20,11 @@ func (extraction *Extraction) extractGoMod(path string) error {
|
|||||||
path = normPath
|
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()
|
extraction.Lock.Lock()
|
||||||
if extraction.SeenGoMods[path] {
|
if extraction.SeenGoMods[path] {
|
||||||
extraction.Lock.Unlock()
|
extraction.Lock.Unlock()
|
||||||
|
|||||||
Reference in New Issue
Block a user