Repository navigation
fix(brew): use postflight_steps so the cask stops warning on upgrade - #182
Merged
Merged
Conversation
Homebrew 7 deprecates the postflight block (cask/dsl.rb calls odeprecated
for every ARTIFACT_BLOCK_CLASSES key). The steps DSL has no appdir method,
so the block is rewritten with `run` and the `{{appdir}}` template token
that install_steps.rb expands inside args. Loads through
Cask::CaskLoader::FromPathLoader as App,PostflightSteps,Zap with no warning.
Supersedes #166 by @quirico: the stanza rename there was right, but the unchanged
`#{appdir}` interpolation raises NameError inside the steps DSL and makes
the cask unreadable.
momenbasel
force-pushed
the
fix/cask-postflight-steps
branch
from
October 8, 2026 01:05
9b4e598 to
f5e4a54
Compare
1 of 9 tasks
momenbasel
added a commit
to momenbasel/homebrew-tap
that referenced
this pull request
Oct 8, 2026
Homebrew 7 deprecates the postflight block. The steps DSL has no appdir
method, so the block uses run with the {{appdir}} template token that
install_steps.rb expands inside args. Mirrors momenbasel/PureMac#182.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Homebrew 7 deprecates the postflight block (cask/dsl.rb calls odeprecated
for every ARTIFACT_BLOCK_CLASSES key). The steps DSL has no appdir method,
so the block is rewritten with
runand the{{appdir}}template tokenthat install_steps.rb expands inside args. Loads through
Cask::CaskLoader::FromPathLoader as App,PostflightSteps,Zap with no warning.
Supersedes #166 by @quirico: the stanza rename there was right, but the unchanged
#{appdir}interpolation raises NameError inside the steps DSL and makesthe cask unreadable.