Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 5ef024e

Browse files
authored
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 Upstream-commit: c1cc6ec81a0f0793bb7794220e2b7afc63e7ae1f Component: engine
2 parents 23743ee + 90e25f2 commit 5ef024e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

components/engine/hack/dockerfile/install/gotestsum.installer

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
: ${GOTESTSUM_COMMIT:=v0.3.5}
44

5-
install_gotestsum() {
6-
echo "Installing gotestsum version $GOTESTSUM_COMMIT"
7-
go get -d gotest.tools/gotestsum
8-
cd "$GOPATH/src/gotest.tools/gotestsum"
9-
git checkout -q "$GOTESTSUM_COMMIT"
5+
install_gotestsum() (
6+
set -e
7+
export GO111MODULE=on
8+
go get -d "gotest.tools/gotestsum@${GOTESTSUM_COMMIT}"
109
go build -buildmode=pie -o "${PREFIX}/gotestsum" 'gotest.tools/gotestsum'
11-
}
10+
11+
)

0 commit comments

Comments
 (0)