Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ dist: export CGO_ENABLED=0
dist:
rm -rf build/diff/* release/*
mkdir -p build/diff/bin release/
cp README.md LICENSE plugin.yaml build/diff
cp README.md LICENSE build/diff
awk '/^hooks:/ { in_hooks = 1; next } in_hooks && /^[^[:space:]]/ { in_hooks = 0 } !in_hooks { print }' plugin.yaml > build/diff/plugin.yaml
Comment on lines +74 to +75
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change updates the make dist packaging, but the repo's GitHub Releases are currently produced by GoReleaser (see .github/workflows/release.yaml), which still archives plugin.yaml as-is (with hooks) and does not include install-binary.sh. As a result, the published helm-diff-*.tgz artifacts will likely continue to fail helm plugin install the same way (#504). Consider either (a) updating GoReleaser packaging to drop the hooks section for release archives, or (b) adding install-binary.sh to the archived files, or (c) switching the release workflow to run make dist and upload release/*.tgz.

Copilot uses AI. Check for mistakes.
GOOS=linux GOARCH=amd64 $(GO) build -o build/diff/bin/diff -trimpath -ldflags="$(LDFLAGS)"
tar -C build/ -zcvf $(CURDIR)/release/helm-diff-linux-amd64.tgz diff/
GOOS=linux GOARCH=arm64 $(GO) build -o build/diff/bin/diff -trimpath -ldflags="$(LDFLAGS)"
Expand Down
Loading