From 321c9310bb4942719df50f3bab2d10add2bb2812 Mon Sep 17 00:00:00 2001 From: snapsynapse <57973674+snapsynapse@users.noreply.github.com> Date: Thu, 20 Aug 2026 22:42:14 -0600 Subject: [PATCH] Fix generated Homebrew formula audit --- CHANGELOG.md | 4 ++++ scripts/check-release-contract.sh | 5 +++++ scripts/release.sh | 1 - 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29168bb..101fcd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Let Homebrew derive the formula version from the tagged release URL so generated formulas pass strict audit. + ## [0.4.2] - 2026-08-20 ### Added diff --git a/scripts/check-release-contract.sh b/scripts/check-release-contract.sh index c413652..c68d532 100755 --- a/scripts/check-release-contract.sh +++ b/scripts/check-release-contract.sh @@ -30,4 +30,9 @@ if grep -Eq 'git (commit|push origin HEAD:main)' scripts/release.sh; then exit 1 fi +if grep -Fq 'version "$version"' scripts/release.sh; then + echo "release.sh must let Homebrew derive the version from the release URL" >&2 + exit 1 +fi + echo "Release contract OK: $count targets, preparation separated from publication." diff --git a/scripts/release.sh b/scripts/release.sh index 8b2b32a..1e86b2c 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -46,7 +46,6 @@ cat > "$tap_tmp/tap/Formula/agentlink.rb" <