upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / skaffold / trunk / build_info.patch
blob9b587d8219b32860c9d94037e0929d92debb3f37
1 diff --git a/Makefile b/Makefile
2 index dd22ea0..aa47490 100644
3 --- a/Makefile
4 +++ b/Makefile
5 @@ -35,7 +35,8 @@ SKAFFOLD_TEST_PACKAGES = ./pkg/skaffold/... ./cmd/... ./hack/... ./pkg/webhook/.
6 GO_FILES = $(shell find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./pkg/diag/*")
8 VERSION_PACKAGE = $(REPOPATH)/pkg/skaffold/version
9 -COMMIT = $(shell git rev-parse HEAD)
10 +COMMIT ?= $(shell git rev-parse HEAD)
11 +TREE_STATE ?= $(if $(shell git status --porcelain),dirty,clean)
13 ifeq "$(strip $(VERSION))" ""
14 override VERSION = $(shell git describe --always --tags --dirty)
15 @@ -52,7 +53,7 @@ GO_BUILD_TAGS_windows = "release"
16 GO_LDFLAGS = -X $(VERSION_PACKAGE).version=$(VERSION)
17 GO_LDFLAGS += -X $(VERSION_PACKAGE).buildDate=$(shell date +'%Y-%m-%dT%H:%M:%SZ')
18 GO_LDFLAGS += -X $(VERSION_PACKAGE).gitCommit=$(COMMIT)
19 -GO_LDFLAGS += -X $(VERSION_PACKAGE).gitTreeState=$(if $(shell git status --porcelain),dirty,clean)
20 +GO_LDFLAGS += -X $(VERSION_PACKAGE).gitTreeState=$(TREE_STATE)
21 GO_LDFLAGS += -s -w
23 GO_LDFLAGS_windows =" $(GO_LDFLAGS) -extldflags \"$(LDFLAGS_windows)\""