diff --git a/hack/install-go-tools.sh b/hack/install-go-tools.sh index 9ee587e..5be573b 100755 --- a/hack/install-go-tools.sh +++ b/hack/install-go-tools.sh @@ -9,11 +9,12 @@ fi cd "$(dirname $BASH_SOURCE)/.." -go install github.com/bwplotka/bingo@latest +go install -mod=readonly github.com/bwplotka/bingo@latest # The following PR has been merged in bingo: # https://github.com/bwplotka/bingo/pull/142 # Once the new bingo version is released, make sure to append '-t 0' in below commands +unset GOFLAGS bingo get -v -l github.com/prometheus/prometheus/cmd/promtool@v0.48.0 bingo get -v -l github.com/cloudflare/pint/cmd/pint@v0.44.1 -go install github.com/prometheus-operator/prometheus-operator/cmd/po-lint +go install -mod=readonly github.com/prometheus-operator/prometheus-operator/cmd/po-lint