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 committed Mar 2, 2022
1 parent edd2efc commit 30d3000
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 30d3000

Please sign in to comment.