Skip to content

Commit 7dc1141

Browse files
committed
Fix vet to exclude scripts directory
- Exclude scripts directory from go vet checks - Scripts are standalone executables and shouldn't be checked together - Fixes 'main redeclared' error when both test-runner.go and make-release.go exist
1 parent 6e4616a commit 7dc1141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ testmariadb: ## Run tests against MariaDB version (set MYSQL_VERSION)
182182

183183
vet: ## Run go vet
184184
@echo "go vet ."
185-
@go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \
185+
@go vet $$(go list ./... | grep -v vendor/ | grep -v '/scripts') ; if [ $$? -eq 1 ]; then \
186186
echo ""; \
187187
echo "Vet found suspicious constructs. Please check the reported constructs"; \
188188
echo "and fix them if necessary before submitting the code for review."; \

0 commit comments

Comments
 (0)