Skip to content

Commit 9f4382e

Browse files
Merge pull request #1710 from joaopapereira/fix-version-of-kctrl
Fix version of the kctrl binary that is built during release
2 parents 631bee2 + 439c1da commit 9f4382e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/hack/build-binaries.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ VERSION="${1:-`get_latest_git_tag`}"
1212

1313
# makes builds reproducible
1414
export CGO_ENABLED=0
15-
LDFLAGS="-X github.com/vmware-tanzu/carvel-kapp-controller/cli/pkg/kctrl/version.Version=$VERSION"
15+
LDFLAGS="-X carvel.dev/kapp-controller/cli/pkg/kctrl/version.Version=$VERSION"
1616

1717
GOOS=darwin GOARCH=amd64 go build -ldflags="$LDFLAGS" -trimpath -o kctrl-darwin-amd64 ./cmd/kctrl/...
1818
GOOS=darwin GOARCH=arm64 go build -ldflags="$LDFLAGS" -trimpath -o kctrl-darwin-arm64 ./cmd/kctrl/...

cli/hack/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ VERSION="${1:-`get_latest_git_tag`}"
1010

1111
# makes builds reproducible
1212
export CGO_ENABLED=0
13-
LDFLAGS="-X github.com/vmware-tanzu/carvel-kapp-controller/cli/pkg/kctrl/version.Version=$VERSION"
13+
LDFLAGS="-X carvel.dev/kapp-controller/cli/pkg/kctrl/version.Version=$VERSION"
1414

1515
go mod vendor
1616
go mod tidy

0 commit comments

Comments
 (0)