We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a8998a commit 840e7a1Copy full SHA for 840e7a1
Makefile
@@ -15,6 +15,7 @@
15
.PHONY: docs license fix vet fmt lint test build tidy
16
17
GOBIN := $(shell go env GOPATH)/bin
18
+GIT_COMMIT := $(shell git rev-parse --short HEAD)
19
20
# T refers to an e2e test case matcher. This enables running e2e tests
21
# selectively. For example,
@@ -27,7 +28,7 @@ T ?= ".*"
27
28
all: generate license fix vet fmt lint license-check test build buildall tidy
29
30
build:
- go build -o $(GOBIN)/kpt -v .
31
+ go build -ldflags "-X github.com/GoogleContainerTools/kpt/run.version=${GIT_COMMIT}" -o $(GOBIN)/kpt -v .
32
33
buildall:
34
GOOS=windows go build -o /dev/null
0 commit comments