Skip to content

Commit b467291

Browse files
committed
ci: run go mod vendor
run go mod vendor as part of the check to ensure the vendor is up to date. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
1 parent 10af11d commit b467291

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,12 @@ vet: ## Run go vet against code.
114114

115115
.PHONY: mod.check
116116
mod.check:#check go module dependencies
117+
@echo 'running "go mod vendor"'
118+
@go mod vendor
117119
@echo 'running "go mod verify"'
118120
@go mod verify
119121
@echo 'checking for modified files.'
120-
# fail in case there are uncommitted changes
122+
# fail in case there are uncommitted changes
121123
@ git diff --quiet || (echo "files were modified: " ; git status --porcelain ; false)
122124

123125
.PHONY: test

0 commit comments

Comments
 (0)