Trigger Homebrew formula update after snapshot publish #363
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As suggested by Claude :)
The
homebrewchecksum mismatch occurred because the XDK distribution zip file was updated to include the new xtc launcher script, which changed its SHA-256 checksum. The updated artifact was published to GitHub Releases, but the homebrew formula in the xtclang/homebrew-xvm tap still contained the old checksum because the homebrew-update.yml workflow wasn't automatically triggered after snapshot publishing—it only ran on manual invocation. This created a situation where the GitHub Release had the new zip file, but the homebrew formula still validated against the old checksum. When users ranbrew install xdk-latest, Homebrew downloaded the new zip but compared it against the outdated checksum in their cached formula, causing the installation to fail with "Formula reports different checksum".This fix adds an automatic trigger to publish-snapshot.yml that invokes homebrew-update.yml immediately after publishing to GitHub Releases, ensuring the formula checksum is atomically updated whenever the artifact changes, allowing users to seamlessly upgrade with standard
brew upgradecommand.