diff options
author | a1012112796 <1012112796@qq.com> | 2022-01-18 02:39:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 13:39:07 -0500 |
commit | 8581e2f4ecfc4b4a1d9f87a40fffe5b293477580 (patch) | |
tree | 49b1a1b73964160828c214c963f1535fdbc39e3e /Makefile | |
parent | 076cead40dd4cd498a70f4bd09b0f0077b26144e (diff) | |
download | gitea-8581e2f4ecfc4b4a1d9f87a40fffe5b293477580.tar.gz gitea-8581e2f4ecfc4b4a1d9f87a40fffe5b293477580.zip |
update description about vendoring in CONTRIBUTING.md (#18280)
* update description about vendoring in CONTRIBUTING.md
follow #18277
Signed-off-by: a1012112796 <1012112796@qq.com>
* Update CONTRIBUTING.md
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* fix and readd test-vendor step
* remove vendor from .gitattributes @silverwind
* simplify go mod check
Signed-off-by: a1012112796 <1012112796@qq.com>
* Revert "remove vendor from .gitattributes @silverwind"
This reverts commit 4789e704cb7a2c80934e4a4cd31efb161e6c8666.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |