sourcegraph/dev/go-mod-update.sh

20 lines
449 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
set -euxf -o pipefail
cd "$(dirname "${BASH_SOURCE[0]}")/.." # cd to repo root dir
export GOPRIVATE=github.com/mattn/go-sqlite3
go get -u all
2020-06-26 12:29:57 +00:00
# Pins
## Newer versions seems to be enforcing something to do with resource
## names. This is causing our use of our k8s client to panic.
go get github.com/golang/protobuf@v1.3.5
# Cleanup and validate everything still works
go mod tidy
go test -short -failfast ./... >/dev/null