From 2a97aa26530dd1e242cdecab3bf240f46bb914f1 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Wed, 2 Mar 2022 01:39:29 +0100 Subject: [PATCH] gotooltest: fix Go version regular expression Trivia: the first defined Go version build constraint is go1.1. --- gotooltest/setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gotooltest/setup.go b/gotooltest/setup.go index 84705cfa..df587b61 100644 --- a/gotooltest/setup.go +++ b/gotooltest/setup.go @@ -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