go: bump to 1.14
The oldest distros we support are Fedora 32 and RHEL 8.3. As both have Go 1.14, we're safe to upgrade. Also, I had to change prepare-source.sh because go fmt now refuses to run on a project which has issues in go.mod, go.sum or modules.text. I think this should be a harmless change. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
2241a8d9ed
commit
f2318f8c5f
5 changed files with 33 additions and 9 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
set -eux
|
||||
|
||||
GO_VERSION=1.13.15
|
||||
GO_VERSION=1.14.14
|
||||
GO_BINARY=$(go env GOPATH)/bin/go$GO_VERSION
|
||||
|
||||
# this is the official way to get a different version of golang
|
||||
|
|
@ -10,12 +10,12 @@ GO_BINARY=$(go env GOPATH)/bin/go$GO_VERSION
|
|||
go get golang.org/dl/go$GO_VERSION
|
||||
$GO_BINARY download
|
||||
|
||||
# ensure that the code is formatted correctly, ...
|
||||
$GO_BINARY fmt ./...
|
||||
|
||||
# ... go.mod and go.sum are up to date, ...
|
||||
# ensure that go.mod and go.sum are up to date, ...
|
||||
$GO_BINARY mod tidy
|
||||
$GO_BINARY mod vendor
|
||||
|
||||
# ... the code is formatted correctly, ...
|
||||
$GO_BINARY fmt ./...
|
||||
|
||||
# ... and all code has been regenerated from its sources.
|
||||
$GO_BINARY generate ./...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue