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
|
.DS_Store
|
||||||
.fseventsd
|
.fseventsd
|
||||||
.envrc
|
.envrc
|
||||||
|
.gotools
|
||||||
.vagrant/
|
.vagrant/
|
||||||
.idea/
|
.idea/
|
||||||
/pkg
|
/pkg
|
||||||
|
|
|
@ -330,7 +330,11 @@ static-assets:
|
||||||
ui: ui-docker static-assets-docker
|
ui: ui-docker static-assets-docker
|
||||||
|
|
||||||
tools:
|
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:
|
version:
|
||||||
@echo -n "Version: "
|
@echo -n "Version: "
|
||||||
|
|
Loading…
Reference in New Issue