mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-16 19:19:23 +08:00
Updated the make tidy command to check for errors and ensure that the GO variable is set correctly
This commit is contained in:
parent
1d68d6abe2
commit
8f94911f98
8
Makefile
8
Makefile
@ -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…
x
Reference in New Issue
Block a user