095ca77f48
Signed-off-by: Justen Martin <jmart@the-coder.com>
11 lines
308 B
Bash
Executable file
11 lines
308 B
Bash
Executable file
#!/bin/sh
|
|
|
|
: ${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"
|
|
go build -buildmode=pie -o "${PREFIX}/gotestsum" 'gotest.tools/gotestsum'
|
|
}
|