From d9da952e96df7df9b7af713683f1e163e4dd3d56 Mon Sep 17 00:00:00 2001 From: ASDFGamer Date: Tue, 18 Apr 2023 05:08:50 +0800 Subject: [PATCH] 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 Reviewed-on: https://gitea.com/gitea/tea/pulls/544 Reviewed-by: John Olheiser Reviewed-by: techknowlogick Co-authored-by: ASDFGamer Co-committed-by: ASDFGamer --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 69960fb..58ce385 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ check: test .PHONY: install install: $(SOURCES) - @echo "installing to $(GOPATH)/bin/$(EXECUTABLE)" + @echo "installing to $(shell $(GO) env GOPATH)/bin/$(EXECUTABLE)" $(GO) install -v $(BUILDMODE) $(GOFLAGS) .PHONY: build