From 0671c0e04d9e05d8e81fc82e464248784dd2aa9d Mon Sep 17 00:00:00 2001 From: iton0 Date: Thu, 5 Dec 2024 14:31:19 -0500 Subject: [PATCH] fix: "hkup -v" produces correct version - Updated release-please.yml to take the full package path to the version variable This should fix issue where running "hkup -v" results in version "dev". --- .github/workflows/release-please.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 20438b7..3398c3a 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -40,13 +40,13 @@ jobs: mkdir -p bin # Build for Linux - GOOS=linux GOARCH=amd64 go build -o bin/hkup-linux -ldflags="-s -w -X cmd.version=${VERSION}" . + GOOS=linux GOARCH=amd64 go build -o bin/hkup-linux -ldflags="-s -w -X github.com/iton0/hkup-cli/cmd.version=${VERSION}" . # Build for Darwin/macOS - GOOS=darwin GOARCH=amd64 go build -o bin/hkup-darwin -ldflags="-s -w -X cmd.version=${VERSION}" . + GOOS=darwin GOARCH=amd64 go build -o bin/hkup-darwin -ldflags="-s -w -X github.com/iton0/hkup-cli/cmd.version=${VERSION}" . # Build for Windows - GOOS=windows GOARCH=amd64 go build -o bin/hkup.exe -ldflags="-s -w -X cmd.version=${VERSION}" . + GOOS=windows GOARCH=amd64 go build -o bin/hkup.exe -ldflags="-s -w -X github.com/iton0/hkup-cli/cmd.version=${VERSION}" . # Step 5: Upload Release Artifacts if a release was created - name: Upload Release Artifacts