diff --git a/cmd/internal/go_version.go b/cmd/internal/go_version.go index 079685e327a..a07dcd8e053 100644 --- a/cmd/internal/go_version.go +++ b/cmd/internal/go_version.go @@ -68,8 +68,8 @@ func checkGoVersion(verStr string) error { return fmt.Errorf("error parsing minor version '%s': %s", m[2], err) } - if major < 1 || minor < 11 { - return fmt.Errorf("requires version >= 1.11") + if major < 1 || minor < 13 { + return fmt.Errorf("requires version >= 1.13") } return nil diff --git a/cmd/internal/go_version_test.go b/cmd/internal/go_version_test.go index 44a27511d86..f8a51dccb79 100644 --- a/cmd/internal/go_version_test.go +++ b/cmd/internal/go_version_test.go @@ -29,10 +29,10 @@ func TestCheckGoVersion(t *testing.T) { {"go1.8", true}, {"go1.9", true}, {"go1.10", true}, - {"go1.11", false}, - {"go1.11rc", false}, - {"go1.11.1", false}, - {"go1.12rc2", false}, + {"go1.11", true}, + {"go1.11rc", true}, + {"go1.11.1", true}, + {"go1.12rc2", true}, {"go1.13", false}, }