We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 264e57f + d7278be commit 8dd7602Copy full SHA for 8dd7602
go/extractor/cli/go-autobuilder/go-autobuilder.go
@@ -370,7 +370,7 @@ func getDepMode(emitDiagnostics bool) (DependencyInstallerMode, string) {
370
// Tries to open `go.mod` and read a go directive, returning the version and whether it was found.
371
func tryReadGoDirective(buildInfo BuildInfo) (string, bool) {
372
if buildInfo.DepMode == GoGetWithModules {
373
- versionRe := regexp.MustCompile(`(?m)^go[ \t\r]+([0-9]+\.[0-9]+)$`)
+ versionRe := regexp.MustCompile(`(?m)^go[ \t\r]+([0-9]+\.[0-9]+(\.[0-9]+)?)$`)
374
goMod, err := os.ReadFile(filepath.Join(buildInfo.BaseDir, "go.mod"))
375
if err != nil {
376
log.Println("Failed to read go.mod to check for missing Go version")
0 commit comments