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
|
all: install
|
||||||
|
|
||||||
install: deps
|
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
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
@ -30,11 +34,10 @@ vet:
|
|||||||
go vet $(VETPACKAGES)
|
go vet $(VETPACKAGES)
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
@hash go help mod > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
@hash go help mod > /dev/null 2>&1; if [ $$? -eq 0 ]; then \
|
||||||
go mod download; \
|
@hash govendor > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||||
fi
|
go get -u github.com/kardianos/govendor; \
|
||||||
@hash govendor > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
fi \
|
||||||
go get -u github.com/kardianos/govendor; \
|
|
||||||
fi
|
fi
|
||||||
@hash embedmd > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
@hash embedmd > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||||
go get -u github.com/campoy/embedmd; \
|
go get -u github.com/campoy/embedmd; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user