mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Go: Tell extractor to extract subdirectories as well
This commit is contained in:
@@ -507,7 +507,11 @@ func extract(workspace project.GoWorkspace) bool {
|
||||
"Unable to make module path %s relative to workspace base dir %s: %s\n",
|
||||
filepath.Dir(module.Path), workspace.BaseDir, relErr.Error())
|
||||
} else {
|
||||
extractorArgs = append(extractorArgs, relModPath)
|
||||
if relModPath != "." {
|
||||
extractorArgs = append(extractorArgs, "."+string(os.PathSeparator)+relModPath+"/...")
|
||||
} else {
|
||||
extractorArgs = append(extractorArgs, relModPath+"/...")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user