Output full path to go bin directory during installation (#544)
This fixed a Bug, that a wrong directory could be written to shell via @echo, when the env var GOPATH isn't set. Co-authored-by: Christoph Wildhagen <git@christoph-wildhagen.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/544 Reviewed-by: John Olheiser <john+gitea@jolheiser.com> Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io> Co-authored-by: ASDFGamer <asdfgamer@noreply.gitea.io> Co-committed-by: ASDFGamer <asdfgamer@noreply.gitea.io>
This commit is contained in:
parent
7f335a2b9c
commit
d9da952e96
2
Makefile
2
Makefile
|
@ -102,7 +102,7 @@ check: test
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: $(SOURCES)
|
install: $(SOURCES)
|
||||||
@echo "installing to $(GOPATH)/bin/$(EXECUTABLE)"
|
@echo "installing to $(shell $(GO) env GOPATH)/bin/$(EXECUTABLE)"
|
||||||
$(GO) install -v $(BUILDMODE) $(GOFLAGS)
|
$(GO) install -v $(BUILDMODE) $(GOFLAGS)
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
|
|
Loading…
Reference in New Issue