Skip to content

Commit 2fcf08d

Browse files
Merge pull request #389 from benmoss/fix-verify-checksums
Don't dirty the working directory with release checksums
2 parents 714912c + d575388 commit 2fcf08d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ jobs:
8787
set -e -x
8888
VERSION=`echo ${{ github.ref }} | grep -Eo '[0-9].*'`
8989
90-
./hack/build-binaries.sh "$VERSION" > ./go-checksums
91-
cat ./go-checksums
92-
diff ./go-checksums <(cat <<EOF
90+
./hack/build-binaries.sh "$VERSION" > /tmp/go-checksums
91+
cat /tmp/go-checksums
92+
diff /tmp/go-checksums <(cat <<EOF
9393
${{steps.get-checksums-from-draft-release.outputs.result}}
9494
EOF
9595
)

hack/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ git diff --exit-code vendor/github.com/vdemeester || {
2121
}
2222

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

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

0 commit comments

Comments
 (0)