Skip to content

Commit

Permalink
build(ci): fix gocompat compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
npepinpe committed May 2, 2022
1 parent d91a276 commit 237f429
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .ci/scripts/release/prepare-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ git config --global user.name "${GITHUB_TOKEN_USR}"
# `go install` (and possibly GO111MODULE=on is not required)
export CGO_ENABLED=0
export GO111MODULE=on
go get -u "github.com/smola/gocompat/[email protected]"

# We cannot build tooling dependencies from scratch, as these might suddenly rely on a dependency
# does not build on our system anymore. Better to fetch the pre-compiled binary, unfortunately.
# With Go 1.17, it might be possible that `go install` will solve this issue, so we should try again
curl -sL https://github.com/smola/gocompat/releases/download/v0.3.0/gocompat_linux_amd64.tar.gz | tar -xz
mv gocompat_linux_amd64 $GOPATH/bin/gocompat

# go-bindata does not provided pre-compiled binaries, so we have to build it ourselves. That said,
# we should switch to go:embed once we update the go version we use.
go get -u "github.com/go-bindata/go-bindata/...@v3"

# Verify binary is available under $GOPATH/bin
Expand Down

0 comments on commit 237f429

Please sign in to comment.