-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(ci): fix gocompat compilation issue
- Loading branch information
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|