From 2abfa9c0c731ab53c61fdf4212783770fe57108a Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Thu, 26 Jun 2025 15:38:24 -0400 Subject: [PATCH 1/2] build: fix path for packaged artifacts Fixes: https://github.com/hashicorp/levant/issues/510 --- .github/workflows/build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 913bdd63..2348839d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -85,15 +85,13 @@ jobs: uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 with: go-version-file: ".go-version" - - name: Determine artifact basename - run: echo "ARTIFACT_BASENAME=${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip" >> "$GITHUB_ENV" - name: Build Levant env: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} GO_LDFLAGS: ${{ needs.generate-ldflags.outputs.ldflags }} CGO_ENABLED: "0" - BIN_PATH: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }} + BIN_PATH: pkg/${{ matrix.goos }}_${{ matrix.goarch }}/levant uses: hashicorp/actions-go-build@37358f6098ef21b09542d84a9814ebb843aa4e3e # v1.0.0 with: product_name: ${{ env.PKG_NAME }} @@ -114,7 +112,7 @@ jobs: maintainer: "HashiCorp" homepage: "https://github.com/hashicorp/levant" license: "MPL-2.0" - binary: out/${{ env.ARTIFACT_BASENAME }} + binary: "pkg/${{ matrix.goos }}_${{ matrix.goarch }}/levant" deb_depends: "openssl" rpm_depends: "openssl" - if: ${{ matrix.goos == 'linux' }} From 172e80a1c2068b41ec6b95b4929eee531822fee0 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Thu, 26 Jun 2025 15:45:43 -0400 Subject: [PATCH 2/2] try this path --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2348839d..87fcb133 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -91,7 +91,7 @@ jobs: GOARCH: ${{ matrix.goarch }} GO_LDFLAGS: ${{ needs.generate-ldflags.outputs.ldflags }} CGO_ENABLED: "0" - BIN_PATH: pkg/${{ matrix.goos }}_${{ matrix.goarch }}/levant + BIN_PATH: dist/levant uses: hashicorp/actions-go-build@37358f6098ef21b09542d84a9814ebb843aa4e3e # v1.0.0 with: product_name: ${{ env.PKG_NAME }} @@ -112,7 +112,7 @@ jobs: maintainer: "HashiCorp" homepage: "https://github.com/hashicorp/levant" license: "MPL-2.0" - binary: "pkg/${{ matrix.goos }}_${{ matrix.goarch }}/levant" + binary: "dist/levant" deb_depends: "openssl" rpm_depends: "openssl" - if: ${{ matrix.goos == 'linux' }}