diff --git a/.travis.yml b/.travis.yml index a5e86e3b..f9006108 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ sudo: false language: go go: - - 1.10.x - 1.11.x - 1.12.x script: make check_generated test @@ -21,4 +20,4 @@ deploy: on: tags: true # it's important to build on the newest version of go: - condition: $TRAVIS_GO_VERSION =~ ^1\.11 + condition: $TRAVIS_GO_VERSION =~ ^1\.12 diff --git a/README.md b/README.md index 9168657b..f0338856 100644 --- a/README.md +++ b/README.md @@ -891,9 +891,13 @@ We don't recommend vendoring `golangci-lint` in your repo: you will get troubles No, you don't need to do it anymore. **Which go versions are supported** -Short answer: go 1.10 and newer are supported. +Short answer: go 1.11 and newer are oficially supported. -Long answer: golangci-lint > 1.10.2 supports Go 1.10 and 1.11; golangci-lint <= v1.10.2 supports Go 1.9, 1.10, 1.11. +Long answer: +1. go < 1.9 isn't supported +2. go 1.9 is supported by golangci-lint <= v1.10.2 +3. go 1.10 is oficially supported by golangci-lint <= 1.15.0. +4. go1.11 and go1.12 are oficially supported by the latest version of golangci-lint. **`golangci-lint` doesn't work** diff --git a/README.tmpl.md b/README.tmpl.md index 7965685b..ce532f4c 100644 --- a/README.tmpl.md +++ b/README.tmpl.md @@ -453,9 +453,13 @@ We don't recommend vendoring `golangci-lint` in your repo: you will get troubles No, you don't need to do it anymore. **Which go versions are supported** -Short answer: go 1.10 and newer are supported. +Short answer: go 1.11 and newer are oficially supported. -Long answer: golangci-lint > 1.10.2 supports Go 1.10 and 1.11; golangci-lint <= v1.10.2 supports Go 1.9, 1.10, 1.11. +Long answer: +1. go < 1.9 isn't supported +2. go 1.9 is supported by golangci-lint <= v1.10.2 +3. go 1.10 is oficially supported by golangci-lint <= 1.15.0. +4. go1.11 and go1.12 are oficially supported by the latest version of golangci-lint. **`golangci-lint` doesn't work** diff --git a/test/errchk.go b/test/errchk.go index f42cd63c..b336f814 100644 --- a/test/errchk.go +++ b/test/errchk.go @@ -30,7 +30,7 @@ func errorCheck(outStr string, wantAuto bool, fullshort ...string) (err error) { for i := range out { for j := 0; j < len(fullshort); j += 2 { full, short := fullshort[j], fullshort[j+1] - out[i] = strings.ReplaceAll(out[i], full, short) + out[i] = strings.Replace(out[i], full, short, -1) } }