summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTING.md7
-rw-r--r--Makefile11
2 files changed, 9 insertions, 9 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index fad535bb2a..624896bbaa 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -91,13 +91,12 @@ Here's how to run the test suite:
## Vendoring
-We keep a cached copy of dependencies within the `vendor/` directory,
-managing updates via [Modules](https://golang.org/cmd/go/#hdr-Module_maintenance).
+We manage dependencies via [Go Modules](https://golang.org/cmd/go/#hdr-Module_maintenance), more details: [go mod](https://go.dev/ref/mod).
-Pull requests should only include `vendor/` updates if they are part of
+Pull requests should only include `go.mod`, `go.sum` updates if they are part of
the same change, be it a bugfix or a feature addition.
-The `vendor/` update needs to be justified as part of the PR description,
+The `go.mod`, `go.sum` update needs to be justified as part of the PR description,
and must be verified by the reviewers and/or merger to always reference
an existing upstream commit.
diff --git a/Makefile b/Makefile
index cb4304b812..342366492c 100644
--- a/Makefile
+++ b/Makefile
@@ -295,7 +295,7 @@ checks: checks-frontend checks-backend
checks-frontend: lockfile-check svg-check
.PHONY: checks-backend
-checks-backend: swagger-check swagger-validate
+checks-backend: gomod-check swagger-check swagger-validate
.PHONY: lint
lint: lint-frontend lint-backend
@@ -369,11 +369,12 @@ unit-test-coverage:
vendor:
$(GO) mod tidy && $(GO) mod vendor
-.PHONY: test-vendor
-test-vendor: vendor
- @diff=$$(git diff vendor/); \
+.PHONY: gomod-check
+gomod-check:
+ @$(GO) mod tidy
+ @diff=$$(git diff go.sum); \
if [ -n "$$diff" ]; then \
- echo "Please run 'make vendor' and commit the result:"; \
+ echo "Please run '$(GO) mod tidy' and commit the result:"; \
echo "$${diff}"; \
exit 1; \
fi