From 2fc2588030d0e71e491cf9527164a49e86209f01 Mon Sep 17 00:00:00 2001 From: Keith Zantow Date: Fri, 13 Oct 2023 11:37:47 -0400 Subject: [PATCH] chore: workaround goreleaser single-target running multiple hooks bug Signed-off-by: Keith Zantow --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2f5a2c893..e0d73ce81 100644 --- a/Makefile +++ b/Makefile @@ -324,7 +324,7 @@ $(SNAPSHOT_DIR): ## Build snapshot release for the current platform # create a config with the dist dir overridden echo "dist: $(SNAPSHOT_DIR)" > $(TEMP_DIR)/goreleaser.yaml - cat .goreleaser.yaml >> $(TEMP_DIR)/goreleaser.yaml + perl -0777pe 's/hooks:.*?quill.*?[.]log//s' .goreleaser.yaml >> $(TEMP_DIR)/goreleaser.yaml # build release snapshot $(SNAPSHOT_CMD) --config $(TEMP_DIR)/goreleaser.yaml