Merge pull request #1552 from gerhard/fix-dagger-version-on-make-install

Set the version when installing via make install
This commit is contained in:
Gerhard Lazu 2022-02-04 12:27:57 +00:00 committed by GitHub
commit 5c79824774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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