mac-dev-playbook
mac-dev-playbook copied to clipboard
Cask package failing because of svn
Hi,
My (almost) unattended Mac install is failing because one cask package requires the svn command. Here's the error:
failed: [127.0.0.1] (item=font-fira-mono-for-powerline) => changed=false
ansible_loop_var: item
item: font-fira-mono-for-powerline
msg: |-
You must: brew install svn
Error: Download failed on Cask 'font-fira-mono-for-powerline' with message: Failure while executing; `svn checkout https://github.com/powerline/fonts/trunk/FiraMono /Users/lyra/Library/Caches/Homebrew/Cask/font-fira-mono-for-powerline--svn --quiet` exited with 1. Here's the output:
You must: brew install svn
Adding svn to the homebrew packages doesn't work because the task with cask packages fails, and the brew packages task doesn't get a chance to run. One possible ease fix is to call the brew packages task before the cask one ?
I also ran into this trying to migrate from a custom homebrew role to this role.
I also just ran into this problem while trying to install a cask font.
Can you give an example of one of the packages that fails to install? Is it just font-fira-mono-for-powerline?
I'd like to be able to replicate the problem before changing the order of the tasks in the role.
I use very few fonts, but fails with these too:
- font-hack-nerd-font
- font-meslo-lg-nerd-font
I did a quick grep inside the homebrew folder and found various references to svn like these:
Library/Taps/homebrew/homebrew-cask-fonts/Casks/font-athiti.rb: using: :svn Library/Taps/homebrew/homebrew-cask-fonts/Casks/font-tsukimi-rounded.rb: using: :svn Library/Taps/homebrew/homebrew-cask-fonts/Casks/font-zilla-slab-highlight.rb: using: :svn Library/Taps/homebrew/homebrew-cask-fonts/Casks/font-monofur-for-powerline.rb: using: :svn Library/Taps/homebrew/homebrew-cask-fonts/Casks/font-the-nautigal.rb: using: :svn
maybe this a kind of pattern to download fonts?
Is there a reason to do the cask packages first instead of the "cli" ones? May we break something if we change the order?
Also, I encountered this issue with font-source-code-pro
EDIT: But i was able to get around it by running a post-task and installing there:
- name: "Install source code pro font"
ansible.builtin.command:
cmd: "{{ homebrew_brew_bin_path }}/brew install --cask font-source-code-pro"
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.