From 3d581c4b185cd17f2f03c8a01205cc5a9bffc79a Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Fri, 26 Jun 2020 11:19:29 -0700 Subject: [PATCH] /{.github, go}: Use GOFLAGS var to build binaries without updating go.mod --- .github/workflows/ci-check-repo.yaml | 1 + go/utils/prepr/prepr.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-check-repo.yaml b/.github/workflows/ci-check-repo.yaml index ebffed7ea2..dea11ffd16 100644 --- a/.github/workflows/ci-check-repo.yaml +++ b/.github/workflows/ci-check-repo.yaml @@ -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 diff --git a/go/utils/prepr/prepr.sh b/go/utils/prepr/prepr.sh index 5bb06d095d..35ce19f975 100755 --- a/go/utils/prepr/prepr.sh +++ b/go/utils/prepr/prepr.sh @@ -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"