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.
1 parent dc4604f commit 00cbfafCopy full SHA for 00cbfaf
go/extractor/project/project.go
@@ -575,7 +575,7 @@ func getModMode(depMode DependencyInstallerMode, baseDir string) ModMode {
575
// Tries to open `go.mod` and read a go directive, returning the version and whether it was found.
576
// The version string is returned in the "1.2.3" format.
577
func tryReadGoDirective(path string) GoVersionInfo {
578
- versionRe := regexp.MustCompile(`(?m)^go[ \t\r]+([0-9]+\.[0-9]+(\.[0-9]+)?)$`)
+ versionRe := regexp.MustCompile(`(?m)^go[ \t\r]+([0-9]+\.[0-9]+(\.[0-9]+)?)`)
579
goMod, err := os.ReadFile(path)
580
if err != nil {
581
log.Println("Failed to read go.mod to check for missing Go version")
0 commit comments