Comments (14)
I had the same issue with another font. It looks like when the Google Fonts repository is being checked out the script expects a .git/info
directory to be there but that isn't being created. Manually creating that with e.g. mkdir ~/Library/Caches/Homebrew/Cask/font-{font}--git-sparse/.git/info
and re-running brew install --cask font-{font}
worked around the issue for me.
from homebrew-cask-fonts.
This happens for me for every font that is being downloaded from Google Fonts (i.e., the https://github.com/google/fonts.git
repo). The workaround by @adamaveray helped.
from homebrew-cask-fonts.
I just had a quick look into this and I'm pretty sure @adamaveray is correct—we're assuming the .git/info
directory exists, but that's not always true.
I've submitted a PR that should fix this here Homebrew/brew#14957.
@andypiper it seems like you're using the same version of git as me, so I'm curious why this was happening for you. Would you mind sharing your global .gitconfig
file?
from homebrew-cask-fonts.
You're spot on, no, the template doesn't include that directory - good sleuthing!
from homebrew-cask-fonts.
Cannot reproduce:
|-> brew install font-bona-nova
==> Cloning https://github.com/google/fonts.git
Cloning into '/Users/miccal/Library/Caches/Homebrew/Cask/font-bona-nova--git-sparse'...
==> Checking out branch main
Already on 'main'
Your branch is up to date with 'origin/main'.
Warning: No checksum defined for cask 'font-bona-nova', skipping verification.
==> Installing Cask font-bona-nova
Warning: macOS's Gatekeeper has been disabled for this Cask
==> Moving Font 'BonaNova-Bold.ttf' to '/Users/miccal/Library/Fonts/BonaNova-Bold.ttf'
==> Moving Font 'BonaNova-Italic.ttf' to '/Users/miccal/Library/Fonts/BonaNova-Italic.ttf'
==> Moving Font 'BonaNova-Regular.ttf' to '/Users/miccal/Library/Fonts/BonaNova-Regular.ttf'
🍺 font-bona-nova was successfully installed!
I assume that this was just a temporary issue,. so please just try installing again.
from homebrew-cask-fonts.
Still happening here:
$ brew install font-bona-nova
==> Cloning https://github.com/google/fonts.git
Updating /Users/andypiper/Library/Caches/Homebrew/Cask/font-bona-nova--git-sparse
Error: Download failed on Cask 'font-bona-nova' with message: No such file or directory @ rb_sysopen - /Users/andypiper/Library/Caches/Homebrew/Cask/font-bona-nova--git-sparse/.git/info/.sparse-checkout20230109-95742-jo7pbc
I've tried removing any existing cached content in the Cask folder, but the problem recurs.
from homebrew-cask-fonts.
Please post the output of brew config
and perhaps try installing with the --no-quarantine
flag.
from homebrew-cask-fonts.
$ brew config
HOMEBREW_VERSION: 3.6.18-28-g8be5846
ORIGIN: https://github.com/Homebrew/brew
HEAD: 8be5846c517e193d6cf7232083f7882bbafbb62f
Last commit: 21 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 1dc4993b84be42b614f3d70dd1713b505fbf8470
Core tap last commit: 17 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: code
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_NO_ENV_HINTS: set
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.39.0 => /opt/homebrew/bin/git
Curl: 7.85.0 => /usr/bin/curl
macOS: 13.1-arm64
CLT: 14.2.0.0.1.1668646533
Xcode: 14.2
Rosetta 2: false
Same installation result with --no-quarantine
from homebrew-cask-fonts.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
from homebrew-cask-fonts.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
from homebrew-cask-fonts.
@hmarr Any ideas on what is happening here?
from homebrew-cask-fonts.
- > ****
from homebrew-cask-fonts.
sure thing, ~/.gitconfig
is as follows:
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[user]
name = [redacted]
email = [redacted]
signingkey = [redacted]
[pull]
rebase = false
[commit]
gpgSign = true
[tag]
gpgSign = true
[gpg]
program = /opt/homebrew/bin/gpg
[init]
defaultBranch = main
templatedir = /Users/[redacted]/.git-templates
[push]
autoSetupRemote = true
from homebrew-cask-fonts.
I suspect templatedir = /Users/[redacted]/.git-templates
is the reason we're getting different results. The default template directory (/opt/homebrew/Cellar/git/2.39.1/share/git-core/templates
on my machine) includes a file named info/exclude
, which is probably why most people get the .git/info
directory created out of the box. @andypiper I assume your template directory doesn't include an info
directory?
Anyway I think this just confirms that Homebrew/brew#14957 is the right solution!
from homebrew-cask-fonts.
Related Issues (20)
- Font casks depending on svn fail to install on Monterey HOT 3
- brew upgrade --greedy upgrades fonts every time it runs! HOT 2
- Google Fonts with broken homepages HOT 6
- "Error: Is a directory @ io_fread" when installing fonts using SVN HOT 6
- font-ibm-plex-mono is outdated HOT 1
- Fonts do not show up in MS Word for Mac HOT 5
- font-fira-mono-nerd-font - font name has changed to 'fura' from 'fira' HOT 1
- BrewTestBot incorrectly deleted 4 Google Fonts HOT 6
- Existing font cask fails to upgrade HOT 3
- Can't install fonts on Linux HOT 3
- ComicNeue homepage does not exist anymore
- Duplicated casks: `font-iosevkaterm-nerd-font` and `font-iosevka-term-nerd-font` HOT 1
- Hack Nerd Font - now some symbols HOT 1
- Cannot install font-literata: BUG: config.c:129: kvi should not be set while parsing a config source HOT 9
- google-fonts workflow incorrectly removed fonts HOT 3
- Some fonts are redownloaded/reinstalled with every `brew upgrade` even when no changes are in those fonts HOT 2
- Fonts installed aren't showing up in Applications or Font Book HOT 1
- Error: SHA256 mismatch for `font-geist` and `font-geist-mono` HOT 4
- DOC: Discoverability of available fonts? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-cask-fonts.