Skip to content

Update cxg to v1.1.1; fix update-formula workflow#1

Open
Shahid-BugB wants to merge 1 commit into
mainfrom
update-cxg-1.1.1
Open

Update cxg to v1.1.1; fix update-formula workflow#1
Shahid-BugB wants to merge 1 commit into
mainfrom
update-cxg-1.1.1

Conversation

@Shahid-BugB

Copy link
Copy Markdown

Why

brew install cxg still serves 1.0.0 even though v1.1.1 was released on March 25.

Root cause: the main-protection ruleset added on Jan 14 requires PRs with 1 approval and has an empty bypass list, so the automated update-formula.yml push to main has been rejected on every run since (see the failed Update Formula runs). The formula never got bumped past 1.0.0.

What this PR does

  • Bumps Formula/cxg.rb to v1.1.1 with the sha256s from the release's SHA256SUMS
  • Syncs the workflow's embedded formula template with the January post_installcaveats fix (the template would have silently reintroduced the sandbox-breaking post_install on the next successful run)
  • Makes the commit step a no-op instead of a failure when the formula is already current (re-tagged releases were failing here)

Follow-up needed (repo settings, can't be done from a PR)

For future releases to update the tap automatically, the main-protection ruleset needs bypass actors — e.g. Repository admin and the GitHub Actions app — under Settings → Rules → Rulesets → main-protection → Bypass list. Alternatively, rework the workflow to open PRs, but each release would then need a manual approval.

🤖 Generated with Claude Code

- Bump formula to v1.1.1 with new release checksums
- Sync workflow template with the caveats fix (post_install broke in
  the brew sandbox and was manually replaced in January; the template
  would have reintroduced it on the next run)
- Skip commit when the formula is already up to date so re-releases
  don't fail the workflow

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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