Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
The GitHub action we use is downloading the go source code to the
project's checked out clone. This is causing our `GitTreeState` to
always report as "dirty."

The file in question is always named `go-linux.tar.gz` (even on Windows
and Mac), since this is incorrect we can preemptively remove the tar
using a glob.
  • Loading branch information
rustydb committed Dec 1, 2023
1 parent abd9b5f commit 06205c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/promote-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ jobs:
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: ${{ env.GO_VERSION }}
pre_command: "rm -f go-*.tar.gz"
build_command: "make ${{ env.REPO_NAME }}"
release_tag: ${{ env.TAG }}
md5sum: 'FALSE'
sha256sum: 'TRUE'
sha256sum: 'TRUE'

4 changes: 3 additions & 1 deletion .github/workflows/promote-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ jobs:
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: ${{ env.GO_VERSION }}
pre_command: "rm -f go-*.tar.gz"
build_command: "make ${{ env.REPO_NAME }}"
release_tag: ${{ env.TAG }}
md5sum: 'FALSE'
sha256sum: 'TRUE'
sha256sum: 'TRUE'

0 comments on commit 06205c1

Please sign in to comment.