Skip to content

fix: Update macOS brew list command for casks#58381

Merged
s0undt3ch merged 5 commits intosaltstack:masterfrom
cdalvaro:update_brew_cask_list_command
Dec 28, 2020
Merged

fix: Update macOS brew list command for casks#58381
s0undt3ch merged 5 commits intosaltstack:masterfrom
cdalvaro:update_brew_cask_list_command

Conversation

@cdalvaro
Copy link
Copy Markdown
Contributor

@cdalvaro cdalvaro commented Sep 4, 2020

What does this PR do?

brew cask --list has been deprecated in favor of brew list --cask (Homebrew/brew#8390).

This PR changes the command in order to avoid the fallowing warning:

❯ brew cask list
Warning: Calling brew cask list is deprecated! Use brew list --cask instead.

and prevents for future errors when the command could fail.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@cdalvaro cdalvaro requested a review from a team as a code owner September 4, 2020 14:19
@ghost ghost requested review from Akm0d and removed request for a team September 4, 2020 14:19
Akm0d
Akm0d previously approved these changes Sep 14, 2020
@Akm0d
Copy link
Copy Markdown
Contributor

Akm0d commented Oct 12, 2020

@cdalvaro Thank you for the PR! Can the merge conflicts be resolved?

…st_command

* github/master: (657 commits)
  Update botocore to the latest 1.16.26 release
  Revert "move_dep_from_module_run (#58701)" (#58702)
  move_dep_from_module_run (#58701)
  Update 3002.rst
  Update 3002.rst
  Update 3002.rst
  Update 3002.rst
  Update 3002.rst
  Update 3002.rst
  Update Releasenotes 3002
  Update Changelog 3002
  Update index.rst
  Update Reference Magnsium
  Skip tests depending on the `ssl_webserver` fixture if on Py < 3.5.3
  Update man-pages to 3002
  Update RC Install Instructions
  Fix rst formatting
  Refresh README; add SECURITY; update logos
  Revert "Set the codepage on windows at import time of `salt/utils/parsers.py`"
  Set the codepage on windows at import time of `salt/utils/parsers.py`
  ...
@cdalvaro
Copy link
Copy Markdown
Contributor Author

@cdalvaro Thank you for the PR! Can the merge conflicts be resolved?

Done!

@cdalvaro cdalvaro requested a review from Akm0d October 12, 2020 17:27
@cdalvaro
Copy link
Copy Markdown
Contributor Author

After three months being deprecated this has turned into an error:

[ERROR   ] stderr: Error: Calling brew cask list is disabled! Use brew list [--cask] instead.

@cdalvaro cdalvaro changed the title feat: Update macOS brew list command for casks fix: Update macOS brew list command for casks Dec 21, 2020
@s0undt3ch s0undt3ch added the Aluminium Release Post Mg and Pre Si label Dec 22, 2020
@s0undt3ch s0undt3ch added this to the Aluminium milestone Dec 22, 2020
@s0undt3ch
Copy link
Copy Markdown
Contributor

/cc @weswhet

Copy link
Copy Markdown
Contributor

@SMillerDev SMillerDev left a comment

Choose a reason for hiding this comment

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

As a brew maintainer, looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Aluminium Release Post Mg and Pre Si

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants