Skip to content

Commit

Permalink
Merge pull request #389 from benmoss/fix-verify-checksums
Browse files Browse the repository at this point in the history
Don't dirty the working directory with release checksums
  • Loading branch information
joaopapereira authored May 11, 2022
2 parents 714912c + d575388 commit 2fcf08d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ jobs:
set -e -x
VERSION=`echo ${{ github.ref }} | grep -Eo '[0-9].*'`
./hack/build-binaries.sh "$VERSION" > ./go-checksums
cat ./go-checksums
diff ./go-checksums <(cat <<EOF
./hack/build-binaries.sh "$VERSION" > /tmp/go-checksums
cat /tmp/go-checksums
diff /tmp/go-checksums <(cat <<EOF
${{steps.get-checksums-from-draft-release.outputs.result}}
EOF
)
2 changes: 1 addition & 1 deletion hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ git diff --exit-code vendor/github.com/vdemeester || {
}

# export GOOS=linux GOARCH=amd64
go build -ldflags="$LDFLAGS" -trimpath -o "imgpkg${IMGPKG_BINARY_EXT-}" ./cmd/imgpkg/...
go build -trimpath -o "imgpkg${IMGPKG_BINARY_EXT-}" ./cmd/imgpkg/...
./imgpkg version

# compile tests, but do not run them: https://github.com/golang/go/issues/15513#issuecomment-839126426
Expand Down

0 comments on commit 2fcf08d

Please sign in to comment.