Giter VIP home page Giter VIP logo

Comments (14)

adamaveray avatar adamaveray commented on May 25, 2024 1

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.

kytta avatar kytta commented on May 25, 2024 1

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.

hmarr avatar hmarr commented on May 25, 2024 1

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.

andypiper avatar andypiper commented on May 25, 2024 1

You're spot on, no, the template doesn't include that directory - good sleuthing!

from homebrew-cask-fonts.

miccal avatar miccal commented on May 25, 2024

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.

andypiper avatar andypiper commented on May 25, 2024

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.

miccal avatar miccal commented on May 25, 2024

Please post the output of brew config and perhaps try installing with the --no-quarantine flag.

from homebrew-cask-fonts.

andypiper avatar andypiper commented on May 25, 2024
$ 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.

github-actions avatar github-actions commented on May 25, 2024

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.

github-actions avatar github-actions commented on May 25, 2024

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.

bevanjkay avatar bevanjkay commented on May 25, 2024

@hmarr Any ideas on what is happening here?

from homebrew-cask-fonts.

ReDICKulous avatar ReDICKulous commented on May 25, 2024
  • > ****

from homebrew-cask-fonts.

andypiper avatar andypiper commented on May 25, 2024

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.

hmarr avatar hmarr commented on May 25, 2024

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)

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.