Skip to content

Commit

Permalink
bump go version to 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Mengqi Yu committed Dec 11, 2018
1 parent 288d7d5 commit f66b5b4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ os:
- osx

go:
- "1.10"
- "1.11"

git:
depth: 3
Expand Down
9 changes: 5 additions & 4 deletions cmd/go_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions cmd/init_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f66b5b4

Please sign in to comment.