mirror of https://github.com/status-im/consul.git
build: prevent 'make tools' from editing go.mod and go.sum (#6738)
This commit is contained in:
parent
f7f1c3fa54
commit
734b6287b8
|
@ -7,6 +7,7 @@
|
|||
.DS_Store
|
||||
.fseventsd
|
||||
.envrc
|
||||
.gotools
|
||||
.vagrant/
|
||||
.idea/
|
||||
/pkg
|
||||
|
|
|
@ -330,7 +330,11 @@ static-assets:
|
|||
ui: ui-docker static-assets-docker
|
||||
|
||||
tools:
|
||||
go get -v $(GOTOOLS)
|
||||
@mkdir -p .gotools
|
||||
@cd .gotools && if [[ ! -f go.mod ]]; then \
|
||||
go mod init consul-tools ; \
|
||||
fi
|
||||
cd .gotools && go get -v $(GOTOOLS)
|
||||
|
||||
version:
|
||||
@echo -n "Version: "
|
||||
|
|
Loading…
Reference in New Issue