build, Dockerfile: bump Go to 1.18

This commit is contained in:
Péter Szilágyi
2022-03-16 08:27:16 +02:00
parent dbfd397262
commit be7eb8ae17
5 changed files with 33 additions and 33 deletions

View File

@ -148,7 +148,7 @@ var (
// This is the version of go that will be downloaded by
//
// go run ci.go install -dlgo
dlgoVersion = "1.17.5"
dlgoVersion = "1.18"
)
var GOBIN, _ = filepath.Abs(filepath.Join("build", "bin"))
@ -338,10 +338,10 @@ func downloadLinter(cachedir string) string {
arch := runtime.GOARCH
ext := ".tar.gz"
if runtime.GOOS == "windows" {
ext = ".zip"
}
if arch == "arm" {
if runtime.GOOS == "windows" {
ext = ".zip"
}
if arch == "arm" {
arch += "v" + os.Getenv("GOARM")
}
base := fmt.Sprintf("golangci-lint-%s-%s-%s", version, runtime.GOOS, arch)