Updated the make tidy command to check for errors and ensure that the GO variable is set correctly

pull/864/head
sweep-ai[bot] 2 years ago committed by GitHub
parent 1d68d6abe2
commit 8f94911f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -76,7 +76,13 @@ check:
## tidy: tidy go.mod ✨
.PHONY: tidy
tidy:
@$(GO) mod tidy
# Ensure that the GO variable is set correctly
if [ -z "$(GO)" ]; then echo "GO variable is not set"; exit 1; fi
# Run the go mod tidy command and check for errors
@$(GO) mod tidy || (echo "go mod tidy failed"; exit 1)
if [ -z "$(GO)" ]; then echo "GO variable is not set"; exit 1; fi
# Run the go mod tidy command and check for errors
@$(GO) mod tidy || (echo "go mod tidy failed"; exit 1)
## vendor: vendor go.mod ✨
.PHONY: vendor

Loading…
Cancel
Save