File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -91,13 +91,12 @@ Here's how to run the test suite:
9191
9292## Vendoring
9393
94- We keep a cached copy of dependencies within the ` vendor/ ` directory,
95- managing updates via [ Modules] ( https://golang.org/cmd/go/#hdr-Module_maintenance ) .
94+ We manage dependencies via [ Go Modules] ( https://golang.org/cmd/go/#hdr-Module_maintenance ) , more details: [ go mod] ( https://go.dev/ref/mod ) .
9695
97- Pull requests should only include ` vendor/ ` updates if they are part of
96+ Pull requests should only include ` go.mod ` , ` go.sum ` updates if they are part of
9897the same change, be it a bugfix or a feature addition.
9998
100- The ` vendor/ ` update needs to be justified as part of the PR description,
99+ The ` go.mod ` , ` go.sum ` update needs to be justified as part of the PR description,
101100and must be verified by the reviewers and/or merger to always reference
102101an existing upstream commit.
103102
Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ checks: checks-frontend checks-backend
295295checks-frontend : lockfile-check svg-check
296296
297297.PHONY : checks-backend
298- checks-backend : swagger-check swagger-validate
298+ checks-backend : gomod-check swagger-check swagger-validate
299299
300300.PHONY : lint
301301lint : lint-frontend lint-backend
@@ -369,11 +369,12 @@ unit-test-coverage:
369369vendor :
370370 $(GO ) mod tidy && $(GO ) mod vendor
371371
372- .PHONY : test-vendor
373- test-vendor : vendor
374- @diff=$$(git diff vendor/ ) ; \
372+ .PHONY : gomod-check
373+ gomod-check :
374+ @$(GO ) mod tidy
375+ @diff=$$(git diff go.sum ) ; \
375376 if [ -n " $$ diff" ]; then \
376- echo " Please run 'make vendor ' and commit the result:" ; \
377+ echo " Please run '$( GO ) mod tidy ' and commit the result:" ; \
377378 echo " $$ {diff}" ; \
378379 exit 1; \
379380 fi
You can’t perform that action at this time.
0 commit comments