Skip to content

fix(release): remove deprecated Homebrew cask syntax in generate-packaging - #2437

Merged
tamirdresher merged 1 commit into
devfrom
fix/packaging-homebrew-cask-syntax
Nov 9, 2026
Merged

tamirdresher merged 1 commit into
devfrom
fix/packaging-homebrew-cask-syntax

Conversation

@tamirdresher

Copy link
Copy Markdown
Collaborator

What

Removes deprecated Homebrew cask syntax (�erified: "github.com//" when homepage already matches, and string comparison depends_on macos: ">= :big_sur" in favor of depends_on macos: :big_sur) from scripts/generate-packaging.mjs and adds a regression test in est/packaging-manifests.test.ts.

Working as Data (Squad Framework Expert).

Why

Homebrew deprecated �erified: when the URL domain matches homepage and deprecated string comparison in depends_on macos:. This was fixed manually in �radygaster/homebrew-squad#1, but scripts/generate-packaging.mjs still emitted the deprecated syntax and would overwrite the fix on the next automated release publish.

How

  • Updated
    enderHomebrewCask in scripts/generate-packaging.mjs to omit �erified: and emit depends_on macos: :big_sur.
  • Added unit test coverage in est/packaging-manifests.test.ts.

⚠️ Quick Check

  • If SDK/CLI source files changed: completed the applicable Changeset step below (
    px changeset add / .changeset/*.md, direct CHANGELOG.md entry for maintainers, or skip-changelog label for no user-facing changes)

PR Readiness Checklist

Branch & Commit

  • Branch created from dev (not main)
  • Branch is up to date with dev (git fetch upstream && git rebase upstream/dev)
  • Verified diff contains only intended changes (git diff --cached --stat)
  • PR is not in draft mode (mark ready when checks pass)
  • Commit history is clean (squash fixups before review)

Build & Test

  • [x]
    pm run build passes
  • [x]
    pm test passes (all tests green)
  • [x]
    pm run lint passes (type check clean)
  • [x]
    pm run lint:eslint passes

Changeset

  • Changeset added via
    px changeset add (if packages/squad-sdk/src/ or packages/squad-cli/src/ changed)
  • Or direct CHANGELOG.md entry (maintainers only — write-protected for external contributors)
  • Or skip-changelog label applied (if no user-facing changes)

Docs

  • README section updated (if new feature/module): N/A
  • Docs feature page (if new user-facing capability): N/A

Exports

  • package.json subpath exports updated (if new module): N/A

Breaking Changes

None.

Waivers

None.

…ckaging

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@tamirdresher tamirdresher added the skip-changelog Skip changelog enforcement for this PR label Nov 9, 2026
Copilot AI adaptive review requested due to automatic review settings November 9, 2026 15:43
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🟡 Impact Analysis — PR #2437

Risk tier: 🟡 MEDIUM

📊 Summary

Metric Count
Files changed 2
Files added 0
Files modified 2
Files deleted 0
Modules touched 2

🎯 Risk Factors

  • 2 files changed (≤5 → LOW)
  • 2 modules touched (2-4 → MEDIUM)

📦 Modules Affected

scripts (1 file)
  • scripts/generate-packaging.mjs
tests (1 file)
  • test/packaging-manifests.test.ts

This report is generated automatically for every PR. See #733 for details.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🛫 PR Readiness Check

ℹ️ This comment updates on each push. Last checked: commit b89b822

PR Scope: 🔧 Infrastructure

⚠️ 2 item(s) to address before review

Status Check Details
✅ Single commit 1 commit — clean history
✅ Not in draft Ready for review
❌ Branch up to date dev is 1 commit(s) ahead — rebase recommended
❌ Copilot review No Copilot review yet — it may still be processing
✅ Changeset present Changeset skipped via skip-changelog label
✅ Scope clean No .squad/ or docs/proposals/ files
✅ No merge conflicts Merge status unknown — GitHub is still computing
✅ Copilot threads resolved No Copilot review threads
✅ CI passing All checks passing

Files Changed (2 files, +8 −3)

File +/−
scripts/generate-packaging.mjs +2 −3
test/packaging-manifests.test.ts +6 −0

Total: +8 −3


This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain; the deprecated Homebrew cask syntax has been replaced and regression coverage verifies the generated output.

No open issues 🎉

What changed in this PR

Updates Homebrew cask generation to use supported syntax and prevents automated releases from restoring deprecated directives.

Changes:

  • Removes the redundant verified: URL option.
  • Replaces the deprecated string-based macOS dependency with depends_on macos: :big_sur.
  • Adds regression coverage for both syntax changes.
File Description
test/​packaging-manifests.test.ts Verifies deprecated cask syntax is absent and the updated dependency is emitted.
scripts/​generate-packaging.mjs Generates Homebrew casks using the updated syntax.

Review effort: Lite (auto)

@tamirdresher
tamirdresher merged commit cc380dc into dev Nov 9, 2026
31 checks passed
@tamirdresher
tamirdresher deleted the fix/packaging-homebrew-cask-syntax branch November 9, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Skip changelog enforcement for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants