Skip to content

Commit

Permalink
Pin Go to 1.18
Browse files Browse the repository at this point in the history
1.19 has changed the expected gofmt format, and we don't want
to follow such changes on the stable branch.

[email protected] 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č <[email protected]>
  • Loading branch information
mtrmac committed Oct 19, 2022
1 parent 14b05e8 commit f24433e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,13 @@ osx_task:
macos_instance:
image: catalina-xcode
setup_script: |
export PATH=$GOPATH/bin:$PATH
# /usr/local/opt/[email protected] will be populated by (brew install [email protected]) below
export PATH=$GOPATH/bin:/usr/local/opt/[email protected]/bin:$PATH
brew update
brew install gpgme go go-md2man
brew install gpgme go@1.18 go-md2man
go install golang.org/x/lint/golint@latest
test_script: |
export PATH=$GOPATH/bin:$PATH
export PATH=$GOPATH/bin:/usr/local/opt/[email protected]/bin:$PATH
go version
go env
make validate-local test-unit-local bin/skopeo
Expand Down

0 comments on commit f24433e

Please sign in to comment.