Skip to content

Commit 445e99d

Browse files
author
Matt McShane
authored
Update go.sum before building proxygen (#106)
* Update go.sum before building proxygen The unpinned versions (e.g. we depend on the latest version of google.golang.org/genproto) change frequently and if the go.sum isn't updated, builds will fail. * Bump the go version used by ci workflow Proxy codegen needs 1.18 or higher.
1 parent 35f91d4 commit 445e99d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-go@v2
1616
with:
17-
go-version: "1.17"
17+
go-version: "1.18"
1818
- name: Check
1919
run: make check test

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ grpc-mock:
6363
.PHONY: proxy
6464
proxy:
6565
printf $(COLOR) "Generate proxy code..."
66-
(cd ./cmd/proxygenerator && go run ./)
66+
(cd ./cmd/proxygenerator && go mod tidy && go run ./)
6767

6868
goimports:
6969
printf $(COLOR) "Run goimports..."
@@ -112,7 +112,7 @@ test:
112112

113113
generatorcheck:
114114
printf $(COLOR) "Check generated code is not stale..."
115-
(cd ./cmd/proxygenerator && go run ./ -verifyOnly)
115+
(cd ./cmd/proxygenerator && go mod tidy && go run ./ -verifyOnly)
116116

117117
check: generatorcheck
118118

0 commit comments

Comments
 (0)