Skip to content

Commit 251888a

Browse files
committed
Go: Tell extractor to extract subdirectories as well
1 parent 925e99c commit 251888a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

go/extractor/cli/go-autobuilder/go-autobuilder.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,11 @@ func extract(workspace project.GoWorkspace) bool {
507507
"Unable to make module path %s relative to workspace base dir %s: %s\n",
508508
filepath.Dir(module.Path), workspace.BaseDir, relErr.Error())
509509
} else {
510-
extractorArgs = append(extractorArgs, relModPath)
510+
if relModPath != "." {
511+
extractorArgs = append(extractorArgs, "."+string(os.PathSeparator)+relModPath+"/...")
512+
} else {
513+
extractorArgs = append(extractorArgs, relModPath+"/...")
514+
}
511515
}
512516
}
513517
}

0 commit comments

Comments
 (0)