Giter VIP home page Giter VIP logo

Comments (9)

razvanazamfirei avatar razvanazamfirei commented on May 25, 2024 1

@homocomputeris, @kevinm6

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.

razvanazamfirei avatar razvanazamfirei commented on May 25, 2024 1

@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.

krehel avatar krehel commented on May 25, 2024

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.

homocomputeris avatar homocomputeris commented on May 25, 2024

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.

razvanazamfirei avatar razvanazamfirei commented on May 25, 2024

Thanks @homocomputeris and @krehel! This seems related to git 2.41.0. Will be looking into it some more.

from homebrew-cask-fonts.

kevinm6 avatar kevinm6 commented on May 25, 2024

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:

  1. brew cleanup —-prune all for cleanup cache
  2. brew install —-cask font-literata

from homebrew-cask-fonts.

kevinm6 avatar kevinm6 commented on May 25, 2024

@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.

razvanazamfirei avatar razvanazamfirei commented on May 25, 2024

@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.

kevinm6 avatar kevinm6 commented on May 25, 2024

@razvanazamfirei

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.