From c9a8159f2899f1cf6dabca7257c868f9eb151ba1 Mon Sep 17 00:00:00 2001 From: Gerhard Lazu Date: Fri, 4 Feb 2022 11:51:54 +0000 Subject: [PATCH] Set the version when installing via make install Before: dagger devel () darwin/amd64 After: dagger devel (1d1b9083) darwin/amd64 Also removed the dependency on the dagger target, since go install is very similar to go build, the only difference in this context is that it places the binary in $GOPATH/bin. Signed-off-by: Gerhard Lazu --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cd487452..7cc1c48d 100644 --- a/Makefile +++ b/Makefile @@ -25,8 +25,8 @@ dagger-debug: # Build a debug version of the dev dagger binary go build -race -o ./cmd/dagger/dagger-debug -ldflags '-X go.dagger.io/dagger/version.Revision=$(GIT_REVISION)' ./cmd/dagger/ .PHONY: install -install: dagger # Build & install a dev dagger binary - go install ./cmd/dagger +install: # Install a dev dagger binary + go install -ldflags '-X go.dagger.io/dagger/version.Revision=$(GIT_REVISION)' ./cmd/dagger .PHONY: test test: # Run all tests