chore: workaround goreleaser single-target running multiple hooks bug

Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
Keith Zantow 2023-10-13 11:37:47 -04:00
parent ecfba80ca7
commit 2fc2588030
No known key found for this signature in database
GPG Key ID: 735988DA57708682

View File

@ -324,7 +324,7 @@ $(SNAPSHOT_DIR): ## Build snapshot release for the current platform
# create a config with the dist dir overridden # create a config with the dist dir overridden
echo "dist: $(SNAPSHOT_DIR)" > $(TEMP_DIR)/goreleaser.yaml 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 # build release snapshot
$(SNAPSHOT_CMD) --config $(TEMP_DIR)/goreleaser.yaml $(SNAPSHOT_CMD) --config $(TEMP_DIR)/goreleaser.yaml