/{.github, go}: Use GOFLAGS var to build binaries without updating go.mod

This commit is contained in:
Dustin Brown
2020-06-26 11:19:29 -07:00
parent 5f11325807
commit 3d581c4b18
2 changed files with 2 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ jobs:
working-directory: ./go
# Keep this in sync with //go/utils/prepr/prepr.sh.
run: |
GOFLAGS="-mod=readonly" go build ./...
./utils/repofmt/check_fmt.sh
./Godeps/verify.sh
./utils/checkcommitters/check_pr.sh

View File

@@ -13,7 +13,7 @@ fi
# Keep this in sync with .github/workflows/ci-check-repo.yaml contents that
# are easy to evaluate locally and might commonly fail.
go get -mod=readonly ./...
GOFLAGS="-mod=readonly" go build ./...
./utils/repofmt/check_fmt.sh
./Godeps/verify.sh
go run ./utils/checkcommitters -dir "$target"