Skip to content

Commit 3831049

Browse files
authored
Merge pull request #524 from mengqiy/bump_go_ver
[Travis] bump go version to 1.11
2 parents 288d7d5 + f66b5b4 commit 3831049

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ os:
55
- osx
66

77
go:
8-
- "1.10"
8+
- "1.11"
99

1010
git:
1111
depth: 3

cmd/go_version_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ func TestCheckGoVersion(t *testing.T) {
2626
}{
2727
{"go1.8", true},
2828
{"go1.9", true},
29-
{"go1.10", false},
30-
{"go1.10rc", false},
31-
{"go1.10.1", false},
32-
{"go1.11rc2", false},
29+
{"go1.10", true},
30+
{"go1.11", false},
31+
{"go1.11rc", false},
32+
{"go1.11.1", false},
33+
{"go1.12rc2", false},
3334
}
3435

3536
for _, test := range tests {

cmd/init_project.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ func checkGoVersion(verStr string) error {
246246
return fmt.Errorf("error parsing minor version '%s': %s", m[2], err)
247247
}
248248

249-
if major < 1 || minor < 10 {
250-
return fmt.Errorf("requires version >= 1.10")
249+
if major < 1 || minor < 11 {
250+
return fmt.Errorf("requires version >= 1.11")
251251
}
252252

253253
return nil

0 commit comments

Comments
 (0)