Makefile: go to temporary directory to avoid go get of binaries from changing go deps
This commit is contained in:
parent
1d00daedac
commit
e4563655fd
11
Makefile
11
Makefile
|
@ -45,14 +45,9 @@ install-build-deps: ## Install dependencies for bin build
|
|||
@go get github.com/mitchellh/gox
|
||||
|
||||
install-gen-deps: ## Install dependencies for code generation
|
||||
@go get golang.org/x/tools/cmd/goimports
|
||||
@./scripts/off_gopath.sh; if [ $$? -eq 0 ]; then \
|
||||
go get github.com/mna/pigeon@master; \
|
||||
else \
|
||||
go get -u github.com/mna/pigeon; \
|
||||
fi
|
||||
|
||||
@go get github.com/alvaroloes/enumer
|
||||
@(cd $(TEMPDIR) && go get golang.org/x/tools/cmd/goimports)
|
||||
@(cd $(TEMPDIR) && GO111MODULE=on go get github.com/mna/pigeon@master)
|
||||
@(cd $(TEMPDIR) && go get github.com/alvaroloes/enumer)
|
||||
|
||||
dev: ## Build and install a development build
|
||||
@grep 'const VersionPrerelease = ""' version/version.go > /dev/null ; if [ $$? -eq 0 ]; then \
|
||||
|
|
Loading…
Reference in New Issue