Skip to content

Fix Homebrew formula release updates - #1788

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/homebrew-formula-updater
Aug 13, 2026
Merged

Fix Homebrew formula release updates#1788
ChiragAgg5k merged 1 commit into
mainfrom
fix/homebrew-formula-updater

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

Summary

Fix the generated CLI and Go CLI release workflows after the Homebrew formula stopped declaring an explicit version.

The release bot now updates each platform asset URL directly, then updates its checksum:

before: version "26.1.0" + releases/download/#{version}/...
after:  releases/download/26.2.0/... + matching SHA256

This prevents the next CLI release from failing while updating appwrite/homebrew-appwrite.

Tests

  • php example.php cli
  • php example.php go-cli
  • Exercised both generated Ruby updaters against the current Homebrew formula fixture
  • composer lint-twig
  • composer refactor:check
  • vendor/bin/phpunit --testsuite Unit

@greptile-apps

greptile-apps Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR updates generated CLI release workflows to modify each Homebrew artifact URL directly now that the formula no longer declares an explicit version.

  • Replaces formula-level version substitution with per-artifact release-tag URL substitution.
  • Retains per-artifact checksum replacement and aborts when either update cannot be applied.
  • Applies equivalent behavior to the TypeScript CLI and Go CLI release workflows.

Confidence Score: 5/5

The PR appears safe to merge with no actionable issues identified.

The changed workflows update each platform-specific URL using the exact release tag and artifact basename, retain checksum validation, and abort rather than committing a partial formula update.

Important Files Changed

Filename Overview
templates/cli/.github/workflows/publish.yml Updates each Homebrew artifact URL to the current release tag before replacing its checksum; no actionable defect was identified.
templates/go-cli/.github/workflows/publish.yml.twig Applies the same URL-and-checksum update strategy to the generated Go CLI release workflow; no actionable defect was identified.

Fix All in Greploop

Reviews (1): Last reviewed commit: "fix Homebrew formula release updates" | Re-trigger Greptile

@ChiragAgg5k
ChiragAgg5k merged commit ebf72d0 into main Aug 13, 2026
62 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix/homebrew-formula-updater branch August 13, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant