Repository navigation
Conversation
`postflight` is deprecated. Changed to `postflight_steps`.
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.
|
Thanks, the diagnosis is right: Homebrew 7 deprecates the #182 carries that form, verified through |
…182) 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.
|
Thank you @momenbasel for the clarification. And the mention, too! 😊 |
postflightis deprecated. Changed topostflight_stepsto suppress brew warning while updating:What does this PR do?
Replace deprecated postflight with postflight_steps in homebrew script
Type of change
Testing
Screenshots