Skip to content

Commit 7431893

Browse files
authored
Fix-release-version (#780)
## What fixed the build script to replace values under the internal package ## Why values were not being injected to the correct place ## Notes <!-- Add any additional notes here -->
1 parent 2b733d1 commit 7431893

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.2.2
1+
VERSION=v0.2.3
22

33
OUT_DIR=dist
44
YEAR?=$(shell date +"%Y")

hack/build.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ fi
99

1010
go build -ldflags=" \
1111
-extldflags '-static' \
12-
-X 'github.com/codefresh-io/cli-v2/pkg/store.binaryName=${BINARY_NAME}' \
13-
-X 'github.com/codefresh-io/cli-v2/pkg/store.version=${VERSION}' \
14-
-X 'github.com/codefresh-io/cli-v2/pkg/store.buildDate=${BUILD_DATE}' \
15-
-X 'github.com/codefresh-io/cli-v2/pkg/store.gitCommit=${GIT_COMMIT}' \
16-
-X 'github.com/codefresh-io/cli-v2/pkg/store.RuntimeDefURL=${RUNTIME_DEF_URL}' \
17-
-X 'github.com/codefresh-io/cli-v2/pkg/store.AddClusterDefURL=${ADD_CLUSTER_DEF_URL}' \
18-
-X 'github.com/codefresh-io/cli-v2/pkg/store.FallbackAddClusterDefURL=${FALLBACK_ADD_CLUSTER_DEF_URL}' \
19-
-X 'github.com/codefresh-io/cli-v2/pkg/store.SegmentWriteKey=${SEGMENT_WRITE_KEY}'" \
12+
-X 'github.com/codefresh-io/cli-v2/internal/store.binaryName=${BINARY_NAME}' \
13+
-X 'github.com/codefresh-io/cli-v2/internal/store.version=${VERSION}' \
14+
-X 'github.com/codefresh-io/cli-v2/internal/store.buildDate=${BUILD_DATE}' \
15+
-X 'github.com/codefresh-io/cli-v2/internal/store.gitCommit=${GIT_COMMIT}' \
16+
-X 'github.com/codefresh-io/cli-v2/internal/store.AddClusterDefURL=${ADD_CLUSTER_DEF_URL}' \
17+
-X 'github.com/codefresh-io/cli-v2/internal/store.SegmentWriteKey=${SEGMENT_WRITE_KEY}'" \
2018
-v -o ${OUT_FILE} ${MAIN}

0 commit comments

Comments
 (0)