mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 01:57:55 +08:00
update vgo test
This commit is contained in:
parent
6bba70a919
commit
3e2eb782d5
15
Makefile
15
Makefile
@ -6,7 +6,11 @@ GOFILES := $(shell find . -name "*.go" -type f -not -path "./vendor/*")
|
||||
all: install
|
||||
|
||||
install: deps
|
||||
govendor sync
|
||||
@hash go help mod > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||
go mod download; \
|
||||
else \
|
||||
govendor sync; \
|
||||
fi
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
@ -30,11 +34,10 @@ vet:
|
||||
go vet $(VETPACKAGES)
|
||||
|
||||
deps:
|
||||
@hash go help mod > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||
go mod download; \
|
||||
fi
|
||||
@hash govendor > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||
go get -u github.com/kardianos/govendor; \
|
||||
@hash go help mod > /dev/null 2>&1; if [ $$? -eq 0 ]; then \
|
||||
@hash govendor > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||
go get -u github.com/kardianos/govendor; \
|
||||
fi \
|
||||
fi
|
||||
@hash embedmd > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||
go get -u github.com/campoy/embedmd; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user