Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homebrew Bundle installs fonts that are already installed #506

Closed
leafac opened this issue Jun 17, 2019 · 5 comments
Closed

Homebrew Bundle installs fonts that are already installed #506

leafac opened this issue Jun 17, 2019 · 5 comments
Labels

Comments

@leafac
Copy link
Contributor

leafac commented Jun 17, 2019

Create a Brewfile:

tap "caskroom/fonts"
cask "font-charter"

Run Homebrew Bundle twice:

$ brew bundle
Using caskroom/fonts
Installing font-charter
Homebrew Bundle complete! 2 Brewfile dependencies now installed.
$ brew bundle
Using caskroom/fonts
Installing font-charter
Homebrew Bundle complete! 2 Brewfile dependencies now installed.

Note how the second time it doesn’t say Using font-charter, but Installing font-charter, which means it’s installing the cask again.

Nothing breaks by installing a cask again, but if you have many fonts in your Brewfile, it adds up and gets quite slow.

@MikeMcQuaid
Copy link
Member

What does brew bundle dump output?

@leafac
Copy link
Contributor Author

leafac commented Jun 17, 2019

Interesting.

Running brew bundle dump I get the following Brewfile:

tap "caskroom/cask"
tap "caskroom/fonts"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
brew "bash"
brew "caddy"
brew "cloc"
brew "coreutils"
brew "exim"
brew "ffmpeg"
brew "figlet"
brew "git"
brew "graphviz"
brew "imagemagick"
brew "nmap"
brew "node"
brew "pstree"
brew "rbenv"
brew "rlwrap"
brew "tree"
brew "watch"
brew "wget"
brew "yarn"
brew "youtube-dl"
cask "authy"
cask "backblaze"
cask "cyberduck"
cask "day-o"
cask "detexify"
cask "firefox"
cask "google-chrome"
cask "grandperspective"
cask "inkscape"
cask "intellij-idea"
cask "java"
cask "mactex"
cask "mattermost"
cask "postman"
cask "racket"
cask "screenflow"
cask "shiftit"
cask "skype"
cask "the-unarchiver"
cask "tor-browser"
cask "transmission"
cask "visual-studio-code"
cask "vlc"
cask "xquartz"
cask "zotero"
cask "caskroom/fonts/font-abril-fatface"
cask "caskroom/fonts/font-alegreya"
cask "caskroom/fonts/font-alegreya-sans"
cask "caskroom/fonts/font-andada"
cask "caskroom/fonts/font-andada-sc"
cask "caskroom/fonts/font-andika"
cask "caskroom/fonts/font-anonymous-pro"
cask "caskroom/fonts/font-bitstream-vera"
cask "caskroom/fonts/font-bree-serif"
cask "caskroom/fonts/font-bungee"
cask "caskroom/fonts/font-cabin"
cask "caskroom/fonts/font-cabin-condensed"
cask "caskroom/fonts/font-cabin-sketch"
cask "caskroom/fonts/font-cardo"
cask "caskroom/fonts/font-charis-sil"
cask "caskroom/fonts/font-charter"
cask "caskroom/fonts/font-cooper-hewitt"
cask "caskroom/fonts/font-crimson-text"
cask "caskroom/fonts/font-dejavu-sans"
cask "caskroom/fonts/font-eb-garamond"
cask "caskroom/fonts/font-et-book"
cask "caskroom/fonts/font-euphoria-script"
cask "caskroom/fonts/font-everson-mono"
cask "caskroom/fonts/font-exo"
cask "caskroom/fonts/font-exo2"
cask "caskroom/fonts/font-fantasque-sans-mono"
cask "caskroom/fonts/font-fira-code"
cask "caskroom/fonts/font-fira-mono"
cask "caskroom/fonts/font-fira-sans"
cask "caskroom/fonts/font-fontawesome"
cask "caskroom/fonts/font-gentium-basic"
cask "caskroom/fonts/font-gentium-book-basic"
cask "caskroom/fonts/font-gentium-plus"
cask "caskroom/fonts/font-gnu-unifont"
cask "caskroom/fonts/font-gravitas-one"
cask "caskroom/fonts/font-hack"
cask "caskroom/fonts/font-hasklig"
cask "caskroom/fonts/font-hermit"
cask "caskroom/fonts/font-ia-writer-duospace"
cask "caskroom/fonts/font-ibm-plex"
cask "caskroom/fonts/font-inconsolata"
cask "caskroom/fonts/font-input"
cask "caskroom/fonts/font-inter"
cask "caskroom/fonts/font-iosevka"
cask "caskroom/fonts/font-iosevka-slab"
cask "caskroom/fonts/font-julius-sans-one"
cask "caskroom/fonts/font-junicode"
cask "caskroom/fonts/font-lato"
cask "caskroom/fonts/font-libre-baskerville"
cask "caskroom/fonts/font-linux-biolinum"
cask "caskroom/fonts/font-linux-libertine"
cask "caskroom/fonts/font-lora"
cask "caskroom/fonts/font-merriweather"
cask "caskroom/fonts/font-merriweather-sans"
cask "caskroom/fonts/font-meslo-lg"
cask "caskroom/fonts/font-metropolis"
cask "caskroom/fonts/font-monoid"
cask "caskroom/fonts/font-monoisome"
cask "caskroom/fonts/font-mononoki"
cask "caskroom/fonts/font-montserrat"
cask "caskroom/fonts/font-noto-emoji"
cask "caskroom/fonts/font-noto-mono"
cask "caskroom/fonts/font-noto-sans"
cask "caskroom/fonts/font-noto-serif"
cask "caskroom/fonts/font-nunito"
cask "caskroom/fonts/font-old-standard-tt"
cask "caskroom/fonts/font-open-sans"
cask "caskroom/fonts/font-open-sans-condensed"
cask "caskroom/fonts/font-oswald"
cask "caskroom/fonts/font-overpass"
cask "caskroom/fonts/font-oxygen"
cask "caskroom/fonts/font-oxygen-mono"
cask "caskroom/fonts/font-playfair-display"
cask "caskroom/fonts/font-playfair-display-sc"
cask "caskroom/fonts/font-pt-mono"
cask "caskroom/fonts/font-pt-sans"
cask "caskroom/fonts/font-pt-serif"
cask "caskroom/fonts/font-public-sans"
cask "caskroom/fonts/font-rajdhani"
cask "caskroom/fonts/font-raleway"
cask "caskroom/fonts/font-roboto"
cask "caskroom/fonts/font-roboto-condensed"
cask "caskroom/fonts/font-roboto-mono"
cask "caskroom/fonts/font-roboto-slab"
cask "caskroom/fonts/font-source-code-pro"
cask "caskroom/fonts/font-source-sans-pro"
cask "caskroom/fonts/font-source-serif-pro"
cask "caskroom/fonts/font-space-mono"
cask "caskroom/fonts/font-tangerine"
cask "caskroom/fonts/font-ubuntu"
cask "caskroom/fonts/font-vollkorn"
cask "caskroom/fonts/font-work-sans"

So I thought I’d try to chang my Brewfile to read like:

tap "caskroom/fonts"
cask "caskroom/fonts/font-charter"

That solves the problem:

$ brew bundle
Using caskroom/fonts
Using caskroom/fonts/font-charter
Homebrew Bundle complete! 2 Brewfile dependencies now installed.

Note how it says Using instead of Installing.

Should I be using the caskroom/fonts/... form, or is this really an issue with Homebrew Bundle?

@MikeMcQuaid
Copy link
Member

Should I be using the caskroom/fonts/... form

Yup!

@leafac
Copy link
Contributor Author

leafac commented Jun 18, 2019

Great. How about I send a pull request adding

tap "caskroom/fonts"
cask "caskroom/fonts/font-charter"

to the example Brewfile in the README?

@MikeMcQuaid
Copy link
Member

@leafac Sounds perfect!

MikeMcQuaid added a commit that referenced this issue Jun 19, 2019
Allow either in a `Brewfile` to avoid confusion such as in #506.
AdamVig added a commit to AdamVig/dotfiles that referenced this issue Sep 10, 2019
Based on
[homebrew-bundle/#506](Homebrew/homebrew-bundle#506).
@lock lock bot added the outdated label Jan 1, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants