diff --git a/.travis.yml b/.travis.yml index 7bba7bef865..13ba2269944 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ os: - osx go: -- "1.10" +- "1.11" git: depth: 3 diff --git a/cmd/go_version_test.go b/cmd/go_version_test.go index 8f2108495d1..05e045df9e5 100644 --- a/cmd/go_version_test.go +++ b/cmd/go_version_test.go @@ -26,10 +26,11 @@ func TestCheckGoVersion(t *testing.T) { }{ {"go1.8", true}, {"go1.9", true}, - {"go1.10", false}, - {"go1.10rc", false}, - {"go1.10.1", false}, - {"go1.11rc2", false}, + {"go1.10", true}, + {"go1.11", false}, + {"go1.11rc", false}, + {"go1.11.1", false}, + {"go1.12rc2", false}, } for _, test := range tests { diff --git a/cmd/init_project.go b/cmd/init_project.go index ae0f2cbf0b3..18d3e6cd802 100644 --- a/cmd/init_project.go +++ b/cmd/init_project.go @@ -246,8 +246,8 @@ func checkGoVersion(verStr string) error { return fmt.Errorf("error parsing minor version '%s': %s", m[2], err) } - if major < 1 || minor < 10 { - return fmt.Errorf("requires version >= 1.10") + if major < 1 || minor < 11 { + return fmt.Errorf("requires version >= 1.11") } return nil