mac-dev-playbook icon indicating copy to clipboard operation
mac-dev-playbook copied to clipboard

Cask package failing because of svn

Open clyra opened this issue 3 years ago • 2 comments

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 ?

clyra avatar Apr 07 '22 02:04 clyra

I also ran into this trying to migrate from a custom homebrew role to this role.

mAAdhaTTah avatar Apr 25 '22 13:04 mAAdhaTTah

I also just ran into this problem while trying to install a cask font.

mitdemrad avatar Jul 25 '22 02:07 mitdemrad

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.

geerlingguy avatar Oct 17 '22 22:10 geerlingguy

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?

clyra avatar Oct 18 '22 01:10 clyra

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"

christianarty avatar Nov 07 '22 03:11 christianarty

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.

stale[bot] avatar Mar 18 '23 11:03 stale[bot]

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.

stale[bot] avatar May 21 '23 21:05 stale[bot]