Makefile: drop vendoring

It's not really needed.
This commit is contained in:
Roman Khimov 2021-05-13 17:22:10 +03:00
parent d6364739c5
commit db4bd28160

View file

@ -26,7 +26,7 @@ build: deps
@set -x \ @set -x \
&& export GOGC=off \ && export GOGC=off \
&& export CGO_ENABLED=0 \ && export CGO_ENABLED=0 \
&& go build -trimpath -v -mod=vendor -ldflags $(BUILD_FLAGS) -o ${BINARY} ./cli/main.go && go build -trimpath -v -ldflags $(BUILD_FLAGS) -o ${BINARY} ./cli/main.go
neo-go.service: neo-go.service.template neo-go.service: neo-go.service.template
@sed -r -e 's_BINDIR_$(BINDIR)_' -e 's_UNITWORKDIR_$(UNITWORKDIR)_' -e 's_SYSCONFIGDIR_$(SYSCONFIGDIR)_' $< >$@ @sed -r -e 's_BINDIR_$(BINDIR)_' -e 's_UNITWORKDIR_$(UNITWORKDIR)_' -e 's_SYSCONFIGDIR_$(SYSCONFIGDIR)_' $< >$@
@ -68,8 +68,10 @@ check-version:
git fetch && (! git rev-list ${VERSION}) git fetch && (! git rev-list ${VERSION})
deps: deps:
@go mod tidy -v @CGO_ENABLED=0 \
@go mod vendor go mod download
@CGO_ENABLED=0 \
go mod tidy -v
push-tag: push-tag:
git checkout ${BRANCH} git checkout ${BRANCH}
@ -94,13 +96,7 @@ cover:
@go tool cover -html=coverage.txt -o coverage.html @go tool cover -html=coverage.txt -o coverage.html
# --- Environment --- # --- Environment ---
env_vendor: env_image:
@echo "=> Update vendor"
@go mod tidy
@go mod download
@go mod vendor
env_image: env_vendor
@echo "=> Building env image" @echo "=> Building env image"
@docker build \ @docker build \
-t env_neo_go_image \ -t env_neo_go_image \