Skip to content

Commit

Permalink
update the go check for the required version
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamacedo86 committed Apr 2, 2020
1 parent 29d1dc1 commit 91eb0e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/internal/go_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions cmd/internal/go_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
}

Expand Down

0 comments on commit 91eb0e1

Please sign in to comment.