Blame tools/prepare-source.sh

Packit 63bb0d
#!/bin/sh
Packit 63bb0d
Packit 63bb0d
set -eux
Packit 63bb0d
Packit Service 3a6627
GO_VERSION=1.14.14
Packit 63bb0d
GO_BINARY=$(go env GOPATH)/bin/go$GO_VERSION
Packit 63bb0d
Packit 63bb0d
# this is the official way to get a different version of golang
Packit 63bb0d
# see https://golang.org/doc/install#extra_versions
Packit 63bb0d
go get golang.org/dl/go$GO_VERSION
Packit 63bb0d
$GO_BINARY download
Packit 63bb0d
Packit Service 3a6627
# ensure that go.mod and go.sum are up to date, ...
Packit 63bb0d
$GO_BINARY mod tidy
Packit 63bb0d
$GO_BINARY mod vendor
Packit Service 509fd4
Packit Service 3a6627
# ... the code is formatted correctly, ...
Packit Service 3a6627
$GO_BINARY fmt ./...
Packit Service 3a6627
Packit Service 509fd4
# ... and all code has been regenerated from its sources.
Packit Service 509fd4
$GO_BINARY generate ./...