Skip to content

Improve macOS homebrew cask support - #54216

Merged
dwoz merged 13 commits into
saltstack:masterfrom
cdalvaro:improve_macOS_homebrew_cask_support
Dec 24, 2019
Merged

dwoz merged 13 commits into
saltstack:masterfrom
cdalvaro:improve_macOS_homebrew_cask_support

Conversation

@cdalvaro

Copy link
Copy Markdown
Contributor

What does this PR do?

When listing Homebrew packages, cask packages do not have the right namespace when they are from a tap different from the default one.

This PR fixes this issue recovering the right namespace for each cask package.

Note: This PR comes from #53756

Previous Behavior

local:
----------
          ID: FiraCode Nerd Font
    Function: pkg.installed
        Name: homebrew/cask-fonts/font-firacode-nerd-font
      Result: False
     Comment: The following packages failed to install/update: homebrew/cask-fonts/font-firacode-nerd-font
     Started: 17:59:08.334054
    Duration: 14324.087 ms
     Changes:

New Behavior

local:
----------
          ID: FiraCode Nerd Font
    Function: pkg.installed
        Name: homebrew/cask-fonts/font-firacode-nerd-font
      Result: True
     Comment: All specified packages are already installed
     Started: 18:56:36.057920
    Duration: 48438.613 ms
     Changes:

Tests written?

Yes

Commits signed with GPG?

Yes

@cdalvaro
cdalvaro requested a review from a team as a code owner August 15, 2019 14:59
@ghost
ghost requested a review from xeacott August 15, 2019 14:59
@cdalvaro cdalvaro changed the title Improve macOS homebrew cask support 🚧 Improve macOS homebrew cask support Aug 15, 2019
@cdalvaro cdalvaro changed the title 🚧 Improve macOS homebrew cask support Improve macOS homebrew cask support Aug 15, 2019
@weswhet

weswhet commented Aug 15, 2019

Copy link
Copy Markdown
Contributor

I like this idea from the previous PR.

if name.startswith('caskroom/cask/'):
  salt.utils.versions.warn_until(
            'Neon',
            'The \'caskroom/cask/\' namespace for brew-cask packages'
            'is deprecated. Use \'homebrew/cask/\' instead.'
        )
  name = name.replace("caskroom/cask/", "homebrew/cask/")

@weswhet

weswhet commented Aug 15, 2019

Copy link
Copy Markdown
Contributor

@eligundry any thoughts on this as you originally added support for casks?

@cdalvaro

cdalvaro commented Sep 1, 2019

Copy link
Copy Markdown
Contributor Author

ping @weswhet @eligundry @xeacott

@weswhet

weswhet commented Sep 1, 2019

Copy link
Copy Markdown
Contributor

LGTM.

@cdalvaro

Copy link
Copy Markdown
Contributor Author

Will this PR be merged?

@waynew

waynew commented Oct 4, 2019

Copy link
Copy Markdown
Contributor

Hey @cdalvaro - as you may have heard, we're changing to a single branch release strategy. What does that mean for this PR?

Well, you've got tests so 👍

We will be working to migrate all PRs from non-master branches to master. If you'd like to get your PR in sooner, please rebase it against master, force push to your branch, and edit this PR to be against master. If you need any help with any of those steps, please let us know!

@cdalvaro

cdalvaro commented Oct 5, 2019

Copy link
Copy Markdown
Contributor Author

Hey @cdalvaro - as you may have heard, we're changing to a single branch release strategy. What does that mean for this PR?

Well, you've got tests so 👍

We will be working to migrate all PRs from non-master branches to master. If you'd like to get your PR in sooner, please rebase it against master, force push to your branch, and edit this PR to be against master. If you need any help with any of those steps, please let us know!

I'll begin working on it!

@cdalvaro
cdalvaro changed the base branch from 2019.2 to master October 5, 2019 16:58
@dwoz

dwoz commented Oct 10, 2019

Copy link
Copy Markdown
Contributor

re-run full all

@cdalvaro

Copy link
Copy Markdown
Contributor Author

I would like to know if this PR will be finally merged

@cdalvaro

Copy link
Copy Markdown
Contributor Author

Please @xeacott, could you revise this PR, it was opened three months ago.

Thank you in advance.

@cdalvaro

Copy link
Copy Markdown
Contributor Author

✅ All tests are OK now, please @xeacott, could you merge this PR??

Thank you in advance!

@dwoz
dwoz merged commit 81cccd8 into saltstack:master Dec 24, 2019
@weswhet

weswhet commented Dec 24, 2019

Copy link
Copy Markdown
Contributor

Thanks @dwoz 🚀

Happy holidays! 🎄

@cdalvaro

Copy link
Copy Markdown
Contributor Author

Thank you very much @dwoz !!!

Happy holidays!

@cdalvaro
cdalvaro deleted the improve_macOS_homebrew_cask_support branch February 24, 2020 19:55
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.

6 participants