Pin Go to 1.16

1.17 has changed the expected gofmt format, and we don't want
to follow such changes on the stable branch.

go@1.16 is "keg-only", i.e. not installed by Brew to /usr/local/bin,
so we need to change PATH to point at it (as the installation instructs
us to).

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač 2021-09-20 15:28:14 +02:00
parent 3bcdd2b5d6
commit 1b6d7f79a5

View File

@ -90,12 +90,13 @@ osx_task:
macos_instance: macos_instance:
image: catalina-xcode image: catalina-xcode
setup_script: | setup_script: |
export PATH=$GOPATH/bin:$PATH # /usr/local/opt/go@1.16 will be populated by (brew install go@1.16) below
export PATH=$GOPATH/bin:/usr/local/opt/go@1.16/bin:$PATH
brew update brew update
brew install gpgme go go-md2man brew install gpgme go@1.16 go-md2man
go get -u golang.org/x/lint/golint go get -u golang.org/x/lint/golint
test_script: | test_script: |
export PATH=$GOPATH/bin:$PATH export PATH=$GOPATH/bin:/usr/local/opt/go@1.16/bin:$PATH
go version go version
go env go env
make validate-local test-unit-local bin/skopeo make validate-local test-unit-local bin/skopeo