
In the past we needed to vendor out Go packages because there wasn't a built-in Go package manager. That changed with Go Modules, which has been stable for a while now. The Go Modules system will maintain packages versions, handle the fetching, checksuming, and keep a public cached of the source code.
15 lines
266 B
Bash
Executable File
15 lines
266 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
cd $(dirname "${BASH_SOURCE[0]}")/..
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
# if [ "$NOMODULES" != "1" ]; then
|
|
# export GO111MODULE=on
|
|
# export GOFLAGS=-mod=vendor
|
|
# fi
|
|
|
|
cd tests && go test && cd ..
|
|
go test $(go list ./... | grep -v /vendor/ | grep -v /tests)
|