Skip to content

Commit

Permalink
gotooltest: fix Go version regular expression
Browse files Browse the repository at this point in the history
Trivia: the first defined Go version build constraint is go1.1.
  • Loading branch information
twpayne authored and mvdan committed Mar 12, 2022
1 parent b00b079 commit 635e0f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gotooltest/setup.go
Expand Up @@ -22,7 +22,7 @@ import (
)

var (
goVersionRegex = regexp.MustCompile(`^go([1-9][0-9]*)\.(0|[1-9][0-9]*)$`)
goVersionRegex = regexp.MustCompile(`^go([1-9][0-9]*)\.([1-9][0-9]*)$`)

goEnv struct {
GOROOT string
Expand Down

0 comments on commit 635e0f0

Please sign in to comment.