Skip to content

Updating our homebrew casks to use "postflight_steps", instead of postflight - #10095

Open
Richard Park (richardpark-msft) wants to merge 2 commits into
mainfrom
issue-10046-homebrew-postflight
Open

Richard Park (richardpark-msft) wants to merge 2 commits into
mainfrom
issue-10046-homebrew-postflight

Conversation

@richardpark-msft

@richardpark-msft Richard Park (richardpark-msft) commented Sep 18, 2026

Copy link
Copy Markdown
Member

Homebrew has a new, declarative way, of handling postflight now, so we're switching over.

This PR also adds in a handy little tester (go tool mage homebrew:test), which will let you take your locally modified cask templates and use them to install the latest azd, in a brew container.

Fixes #10046

ripark added 2 commits September 17, 2026 16:34
…eps`, now that `postflight` has been deprecated.

Also, added in a test target in our magefile (homebrew:check) so you can validate your freshly edited Cask using Linux homebrew, in case you're not on a Mac :)
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
24 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@github-actions

Copy link
Copy Markdown

📋 Prioritization Note

Thanks for the contribution! The linked issue isn't in the current milestone yet.
Thank you for logging this issue; our team is reviewing it. If you need urgent prioritization, tag Rick Winter (@RickWinter) and Kristen Womack (@kristenwomack) to let us know.

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.

Copilot review overview

🟡 Changes recommended

Critical and moderate issues remain in Homebrew validation and Mage command integration.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite (auto)
Findings: 1 High severity · 1 Medium severity

Note

Copilot is running an experiment and ran this review at Lite.

Open (2)
What changed in this PR

Updates Homebrew casks to use declarative postflight_steps and adds containerized validation tooling.

Changes:

  • Replaces deprecated postflight blocks.
  • Adds stable and daily cask installation checks.
  • Adds Mage integration and container-runtime test updates.
File Reviewed changes
eng/​templates/​brew.cask.template Updates stable cask postflight handling.
eng/​templates/​brew.cask.daily.template Updates daily cask postflight handling.
eng/​scripts/​test-homebrew-casks.sh Renders and validates stable and daily cask installations.
cli/​azd/​magefile.go Adds Homebrew testing support and runtime detection.
cli/​azd/​magefile_test.go Updates runtime detection tests.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread eng/scripts/test-homebrew-casks.sh
Comment thread cli/azd/magefile.go
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.

[Issue] macOS Homebrew cask uses deprecated postflight

2 participants