Merge pull request #40988 from thaJeztah/19.03_backport_fix_gotestsum_install
[19.03 backport] Fix bug in gotestsum installer causing dependencies to not be downloaded
This commit is contained in:
commit
c1cc6ec81a
1 changed files with 6 additions and 6 deletions
|
@ -2,10 +2,10 @@
|
|||
|
||||
: ${GOTESTSUM_COMMIT:=v0.3.5}
|
||||
|
||||
install_gotestsum() {
|
||||
echo "Installing gotestsum version $GOTESTSUM_COMMIT"
|
||||
go get -d gotest.tools/gotestsum
|
||||
cd "$GOPATH/src/gotest.tools/gotestsum"
|
||||
git checkout -q "$GOTESTSUM_COMMIT"
|
||||
install_gotestsum() (
|
||||
set -e
|
||||
export GO111MODULE=on
|
||||
go get -d "gotest.tools/gotestsum@${GOTESTSUM_COMMIT}"
|
||||
go build -buildmode=pie -o "${PREFIX}/gotestsum" 'gotest.tools/gotestsum'
|
||||
}
|
||||
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue