All our downstream platforms now support Go 1.13: RHEL 8.2: golang-1.13.4 Fedora 31: golang-1.13.14 There's no reason anymore to stay on 1.12, therefore this commit bumps the minimal required Go version to 1.13
16 lines
343 B
Bash
Executable file
16 lines
343 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eux
|
|
|
|
GO_VERSION=1.13.15
|
|
GO_BINARY=$(go env GOPATH)/bin/go$GO_VERSION
|
|
|
|
# this is the official way to get a different version of golang
|
|
# see https://golang.org/doc/install#extra_versions
|
|
go get golang.org/dl/go$GO_VERSION
|
|
$GO_BINARY download
|
|
|
|
# prepare the sources
|
|
$GO_BINARY fmt ./...
|
|
$GO_BINARY mod tidy
|
|
$GO_BINARY mod vendor
|