Go: Tell extractor to extract subdirectories as well

This commit is contained in:
Michael B. Gale
2024-02-13 13:08:28 +00:00
parent 925e99cdb2
commit 251888a0bd

View File

@@ -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+"/...")
}
}
}
}