From 834f6e665f75b26e098d85ac9a677a809d959156 Mon Sep 17 00:00:00 2001 From: Eirik Haatveit Date: Wed, 9 Jul 2025 14:24:10 +0200 Subject: [PATCH] build: remove install hooks from release dist This commit removes the hooks section from plugin.yaml when staging it for release in the dist target, as the script referenced there is not bundled as part of releases, and also not needed. This fixes #504. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a9dc6557..ba15cdb2 100644 --- a/Makefile +++ b/Makefile @@ -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 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)"