Comments (9)
Thank you all for looking into this. This is an issue with git
, but a solution was implemented and this should be resolved once you update homebrew.
from homebrew-cask-fonts.
@homocomputeris, thanks for providing this. It looks like they're upgrading properly, we're just not noticing that the cask file is the same. This can be a side-effect of :latest
, but feel free to open an issue in the main repo or submit a PR. :)
BTW, HOMEBREW_UPGRADE_GREEDY
doesn't take any arguments; if set it just passes --greedy
.
from homebrew-cask-fonts.
While I don't have a direct answer for what is causing this (others please chime in), I was able to reproduce it by installing, uninstalling, and then attempting to re-install font-literata
. Same error as above when attempting re-install.
I was able to work around this issue by removing the existing directory from the install from ~/Library/Caches/Homebrew/Cask/font-literata--git-sparse
. Install then worked.
Also note, being in that directory and simply issuing git fetch origin
standalone outside of brew
causes the same error.
> pwd
~/Library/Caches/Homebrew/Cask/font-literata--git-sparse
> git fetch origin
BUG: config.c:129: kvi should not be set while parsing a config source
zsh: abort git fetch origin
from homebrew-cask-fonts.
Also, it's both installed and uninstalled:
==> Upgrading 4 outdated packages:
Error: The cask 'font-literata' was affected by a bug and cannot be upgraded as-is. To fix this, run:
brew reinstall --cask --force font-literata
brew upgrade --greedy 4.91s user 2.58s system 57% cpu 12.934 total
% brew uninstall font-literata
Error: Cask 'font-literata' is not installed.
from homebrew-cask-fonts.
Thanks @homocomputeris and @krehel! This seems related to git 2.41.0
. Will be looking into it some more.
from homebrew-cask-fonts.
Thanks @homocomputeris and @krehel! This seems related to
git 2.41.0
. Will be looking into it some more.
Hello @razvanazamfirei, is happening the same with font-source-code-pro
!
I’ve noticed that new casks with the only_path
options in the formula spec don’t result installed due to probably the usage of git sparse-checkout
.
And this bring to the problem that if you run brew upgrade —-greedy-latest
every time install the same font.
Let me know if I can help to debug it more!
@homocomputeris I think you already installed it but it doesn’t result!
You can check in /Library/Fonts
if some Literata*.ttf
exists.
Anyway, if no files (Literata*.ttf
) are present, you could try with this commands:
brew cleanup —-prune all
for cleanup cachebrew install —-cask font-literata
from homebrew-cask-fonts.
@razvanazamfirei I’ve just update Homebrew, removed and installed again those fonts;
now they result correctly installed but I’m still seeing the issue with the upgrade
of them: since I’ve set the ENV
var HOMEBREW_UPGRADE_GREEDY=latest
or the same passing it from command line (brew upgrade —greedy-latest
) the output is:
brew upgrade —-greedy-latest
==> Upgrading 2 outdated packages:
font-literata latest -> latest
font-source-code-pro latest -> latest
I didn’t dive into Homebrew code, but I assume that for upgrade casks and formula it checks the hash of last commit; however, in the case of git sparse-checkout
maybe it's appropriate to check the commit hash
of the installed cask (i.e. specific subdir in the repo).
from homebrew-cask-fonts.
@kevinm6, I haven't been able to reproduce that. Are you still seeing the issue after running:
brew cleanup --prune=all
If so could you post the output of the command with --verbose --debug
, brew doctor
and brew config
.
Thank you!
from homebrew-cask-fonts.
brew doctor
output:
Your system is ready to brew.
brew config
output:
HOMEBREW_VERSION: 4.0.22-4-g5097876
ORIGIN: https://github.com/Homebrew/brew
HEAD: 50978768910221d8ad8c671a9d095af16d33d824
Last commit: 8 hours ago
Core tap origin: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 5dc77f1116c04c7b81d3deca1c2b58c2776d17d6
Core tap last commit: 2 days ago
Core tap branch: master
Core tap JSON: 13 Jun 09:57 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_BAT: set
HOMEBREW_BAT_CONFIG_PATH: /Users/Kevin/.config/bat/config
HOMEBREW_BROWSER: open
HOMEBREW_CACHE: /Users/Kevin/.cache/homebrew
HOMEBREW_CASK_OPTS: ["--appdir=/Applications", "--fontdir=/Library/Fonts"]
HOMEBREW_CLEANUP_MAX_AGE_DAYS: 60
HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: 6
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.DYCzcC1ZSi/org.xquartz:0
HOMEBREW_DISPLAY_INSTALL_TIMES: set
HOMEBREW_EDITOR: nvim
HOMEBREW_FORCE_BREWED_CURL: set
HOMEBREW_FORCE_BREWED_GIT: set
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_INSTALL_BADGE: ☕️
HOMEBREW_LOGS: /Users/Kevin/.cache/homebrew/logs
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_NO_ANALYTICS: set
HOMEBREW_NO_ENV_HINTS: set
HOMEBREW_NO_GOOGLE_ANALYTICS: set
HOMEBREW_SSH_CONFIG_PATH: /Users/Kevin/.ssh/config
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.3 build 1403
Git: 2.41.0 => /opt/homebrew/opt/git/bin/git
Curl: 8.1.2 => /opt/homebrew/opt/curl/bin/curl
macOS: 13.4-arm64
CLT: 14.3.1.0.1.1683849156
Xcode: 14.3.1 => /Applications/Xcode-14.3.1.app/Contents/Developer
Rosetta 2: false
brew upgrade --greedy-latest --verbose --debug
output:
brew_upgrade_greedy_latest.txt
from homebrew-cask-fonts.
Related Issues (20)
- 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
- font-bona-nova installation fails HOT 14
- 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
- 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
- Cask `font-noto-sans` broken
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.