File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ kustomize-binary: $(KUSTOMIZE_SRC) kustomize-git-reset
3232 for platform in $( PLATFORMS) ; do \
3333 GOOS=$$(cut -d / -f1 <<<$$platform ) ; \
3434 GOARCH=$$(cut -d / -f2 <<<$$platform ) ; \
35- OUTPUT=$$(basename $$PWD) -$$ GOOS- $$ GOARCH- $$ (git rev-parse --short=8 HEAD ) ; \
35+ OUTPUT=$$(basename $$PWD) -$$(git describe --tags | cut -d '/' -f2 ) - $$ GOOS- $$ GOARCH ; \
3636 test " $$ GOOS" == " windows" && OUTPUT=$$ {OUTPUT}.exe; \
37- GOOS=$$ GOOS GOARCH=$$ GOARCH go build -ldflags=" -s -X sigs.k8s.io/kustomize/api/provenance.version=$( shell git -C " $( KUSTOMIZE_SRC ) /.. " describe --tags | cut -d ' /' -f2) -X sigs.k8s.io/kustomize/api/provenance.gitCommit=$( shell git -C " $( KUSTOMIZE_SRC ) /.. " rev-parse HEAD) -X sigs.k8s.io/kustomize/api/provenance.buildDate=$( shell date -u +%FT%TZ) " -trimpath -o $$ OUTPUT . ; \
37+ GOOS=$$ GOOS GOARCH=$$ GOARCH go build -ldflags=" -s -X sigs.k8s.io/kustomize/api/provenance.version=$$ ( git describe --tags | cut -d '/' -f2) -X sigs.k8s.io/kustomize/api/provenance.gitCommit=$$ (git rev-parse HEAD) -X sigs.k8s.io/kustomize/api/provenance.buildDate=$( shell date -u +%FT%TZ) " -trimpath -o $$ OUTPUT . ; \
3838 cp $$ OUTPUT $(CURDIR ) /bin; \
3939 done
You can’t perform that action at this time.
0 commit comments