@@ -17,9 +17,7 @@ ROOT_PACKAGE := github.com/$(ORG_REPO)
17
17
# This does not reflect the go binary version which was used to build the jx binary, and also does not reflect the version in the catalog.
18
18
# The sole purpose of this variable is to build a new binary if we ever need to build a new jx binary with a new go version with no code change.
19
19
# If you notice that this version is not the same as the catalog version, please open a PR, the maintainers are happy to review it.
20
- DUMMY_GO_VERSION := 1.18.6
21
-
22
- GO_VERSION := $(shell $(GO ) version | sed -e 's/^[^0-9.]* \([0-9.]* \) .*/\1/')
20
+ DUMMY_GO_VERSION := 1.23.3
23
21
24
22
GO_DEPENDENCIES := $(call rwildcard,pkg/,* .go) $(call rwildcard,cmd/j,* .go)
25
23
@@ -40,13 +38,7 @@ VERSION ?= $(shell echo "$$(git for-each-ref refs/tags/ --count=1 --sort=-versio
40
38
# BUILD_TIME_CONFIG_FLAGS ?= ""
41
39
42
40
# Full build flags used when building binaries. Not used for test compilation/execution.
43
- BUILDFLAGS := -ldflags \
44
- " -X $(ROOT_PACKAGE ) /pkg/version.Version=$(VERSION ) \
45
- -X $(ROOT_PACKAGE ) /pkg/version.Revision='$(REV ) '\
46
- -X $(ROOT_PACKAGE ) /pkg/version.Branch='$(BRANCH ) '\
47
- -X $(ROOT_PACKAGE ) /pkg/version.BuildDate='$(BUILD_DATE ) '\
48
- -X $(ROOT_PACKAGE ) /pkg/version.GoVersion='$(GO_VERSION ) '\
49
- $(BUILD_TIME_CONFIG_FLAGS ) "
41
+ BUILDFLAGS := -ldflags "$(BUILD_TIME_CONFIG_FLAGS ) "
50
42
51
43
# Some tests expect default values for version.*, so just use the config package values there.
52
44
TEST_BUILDFLAGS := -ldflags "$(BUILD_TIME_CONFIG_FLAGS ) "
@@ -140,9 +132,6 @@ release: clean linux test
140
132
141
133
release-all : release linux win darwin
142
134
143
- .PHONY : goreleaser
144
- goreleaser :
145
- step-go-releaser --organisation=$(ORG ) --revision=$(REV ) --branch=$(BRANCH ) --build-date=$(BUILD_DATE ) --go-version=$(GO_VERSION ) --root-package=$(ROOT_PACKAGE ) --version=$(VERSION )
146
135
147
136
.PHONY : clean
148
137
clean : # # Clean the generated artifacts
0 commit comments