Comments (18)
Hi! I guess this is the same issue as #117, as both fonts use the Subversion download method.
Could you try out my suggestion there?
from homebrew-cask-fonts.
Still fails unfortunately.
==> Checking out https://github.com/Lokaltog/powerline-fonts/trunk/SourceCodePro
audit for font-sauce-code-powerline: failed
- download not possible: SHA2 mismatch
Expected: 8356da0aa36694517656ebe1638b0b37e29743aa0f86271b2491c0e05222d4ba
Actual: 02f30ae9bde68200d912edac3681d016a5ddb103c7562c66b7e4e047de975ee2
Archive: /Library/Caches/Homebrew/font-sauce-code-powerline--svn-1.017.tar
To retry an incomplete download, remove the file above.
Error: audit failed
Just a question: why is it using SVN? It's a normal git-repo, no?
from homebrew-cask-fonts.
It is using the git/SVN gateway as a hack to download multiple files. Casks cannot (yet) have multiple url
stanzas, and git does not offer a way to download just one subdirectory, at least not without downloading the entire revision history.
I still can't duplicate your problem, so I can't figure out how to work on it. Could you post the bad download font-sauce-code-powerline--svn-1.017.tar
in dropbox or somewhere that I could inspect it?
Can anyone else duplicate? @jimbojsb ?
from homebrew-cask-fonts.
Strange, feels like it could be some stupid mistake on my part but I can't see anything I'm doing different, and other fonts work. Here is the file
from homebrew-cask-fonts.
Well this is maddening. Here is my output. Note the last manual shasum is the file provided from dropbox
[josh@orangeslice ~]$ brew cask cleanup && brew cask audit font-sauce-code-powerline --download
==> Removing dead symlinks
==> Removing cached downloads
/Library/Caches/Homebrew/font-droid-sans-mono--svn-1.00.tar
==> Checking out https://github.com/Lokaltog/powerline-fonts/trunk/SourceCodePro
audit for font-sauce-code-powerline: failed
- download not possible: SHA2 mismatch
Expected: 8356da0aa36694517656ebe1638b0b37e29743aa0f86271b2491c0e05222d4ba
Actual: d12cebed0d83c669f79779237bef6ec919a91e812fc09bd6eadcb2c9b77ba363
Archive: /Library/Caches/Homebrew/font-sauce-code-powerline--svn-1.017.tar
To retry an incomplete download, remove the file above.
[josh@orangeslice ~]$ shasum -a256 /Library/Caches/Homebrew/font-sauce-code-powerline--svn-1.017.tar
d12cebed0d83c669f79779237bef6ec919a91e812fc09bd6eadcb2c9b77ba363 /Library/Caches/Homebrew/font-sauce-code-powerline--svn-1.017.tar
[josh@orangeslice ~]$ shasum -a256 ~/Downloads/font-sauce-code-powerline--svn-1.017.tar
02f30ae9bde68200d912edac3681d016a5ddb103c7562c66b7e4e047de975ee2 /Users/josh/Downloads/font-sauce-code-powerline--svn-1.017.tar
from homebrew-cask-fonts.
I don't think it is your mistake at all; sorry if I implied that. We got two similar reports within a few hours of each other.
The file you provided was useful, thanks: the contents are the same as on my machine, but the header is different, because the files are in a different order. By any chance, are you running on a case-sensitive filesystem?
from homebrew-cask-fonts.
No worries, it was I who implied it. :-)
yep that's it, osx journaled case sensitive.
On 31 Mar 2014 16:30, "Roland Walker" [email protected] wrote:
I don't think it is your mistake at all; sorry if I implied that. We got
two similar reports within a few hours of each other.The file you provided was useful, thanks: the contents are the same as on
my machine, but the header is different, because the files are in a
different order. By any chance, are you running on a case-sensitive
filesystem?Reply to this email directly or view it on GitHubhttps://github.com//issues/118#issuecomment-39094629
.
from homebrew-cask-fonts.
Thanks @jimbojsb ! But it is maddening, because yours is yet a third different checksum. Here is how I inspected the headers
$ /usr/bin/tar --list -f ~/Downloads/font-sauce-code-powerline--svn-1.017.tar
LICENSE.txt
README.rst
Sauce Code Powerline Black.otf
Sauce Code Powerline Bold.otf
Sauce Code Powerline ExtraLight.otf
Sauce Code Powerline Light.otf
Sauce Code Powerline Medium.otf
Sauce Code Powerline Regular.otf
Sauce Code Powerline Semibold.otf
fonts.dir
fonts.scale
$ /usr/bin/tar --list -f /Library/Caches/Homebrew/font-sauce-code-powerline--svn-1.017.tar
fonts.dir
fonts.scale
LICENSE.txt
README.rst
Sauce Code Powerline Black.otf
Sauce Code Powerline Bold.otf
Sauce Code Powerline ExtraLight.otf
Sauce Code Powerline Light.otf
Sauce Code Powerline Medium.otf
Sauce Code Powerline Regular.otf
Sauce Code Powerline Semibold.otf
from homebrew-cask-fonts.
They have been a little indecisive about the name, "Sauce Code Powerline", "Source Code Pro for Powerline" etc, it can't have anything to do with that, can it?
from homebrew-cask-fonts.
@rolandwalker my output matches yours for those commands. Also I am on a standard case-preserving journaled HFS.
FWIW the 2 files are exactly the same size as well.
from homebrew-cask-fonts.
@alcesleo great, then we know the cause.
However, we can't fix the Cask; I need to patch the Ruby code to be resilient against case-sensitive filesystems. It is arguable that creating the tarball is a needless step. One of the main reasons for doing that was to provide a stable target for checksums. It seems to need a little more work to actually be a stable target.
from homebrew-cask-fonts.
@jimbojsb I guess we only know one cause -- no idea yet what is happening on your machine (or in #117).
from homebrew-cask-fonts.
@rolandwalker I think all my hashes match others mentioned above at one point or another.
from homebrew-cask-fonts.
All this because of a little Linux-envy... Do you mean there is a problem with homebrew-cask?
from homebrew-cask-fonts.
@alcesleo yes. One could argue that the fundamental bug is Apple's, but homebrew-cask needs to work around it.
from homebrew-cask-fonts.
@rolandwalker Same issue but fourth different checksum. Files seem to be in the same order as on your machine, on standard case-insensitive Mac OS Extended (Journaled). Also been having the same issue with other fonts using the Subversion download method. Here's my download: font-sauce-code-powerline--svn-1.017.tar.
$ brew cask install font-sauce-code-powerline
==> Checking out https://github.com/Lokaltog/powerline-fonts/trunk/SourceCodePro
Error: SHA2 mismatch
Expected: 8356da0aa36694517656ebe1638b0b37e29743aa0f86271b2491c0e05222d4ba
Actual: 075ae0e5f6a4e958997260322486cb16826a610159f93a796c2627e853773aae
Archive: /Library/Caches/Homebrew/font-sauce-code-powerline--svn-1.017.tar
To retry an incomplete download, remove the file above.
$ /usr/bin/tar --list -f /Library/Caches/Homebrew/font-sauce-code-powerline--svn-1.017.tar
fonts.dir
fonts.scale
LICENSE.txt
README.rst
Sauce Code Powerline Black.otf
Sauce Code Powerline Bold.otf
Sauce Code Powerline ExtraLight.otf
Sauce Code Powerline Light.otf
Sauce Code Powerline Medium.otf
Sauce Code Powerline Regular.otf
Sauce Code Powerline Semibold.otf
from homebrew-cask-fonts.
The conclusion is that the tar
format (while pretty minimal) is not a sufficiently lightweight wrapper around multiple files for this use-case. It introduces enough variation to break checksums.
So we need to reimplement the SVN download strategy without tar
-- and then change almost every checksum in the fonts repo.
from homebrew-cask-fonts.
I'm currently having this issue (well, #117, but this seems to be where the discussion is). I'm not using a case-sensitive file-system.
I get the SHA2 mismatch error with 'font-droid-sans', 'font-droid-serif', 'font-droid-mono', 'font-cousine', 'font-oxygen', and 'font-sauce-code-powerline'. I was successfully able to download and install a number of other fonts, though. I grepped through the formulae: ALL the failures used the 'svn' method and ALL the successes did not.
brew doctor/config/cask doctor output here: https://gist.github.com/andrewmwhite/a02ec2089e87dabbd5b4
$ brew cask cleanup && brew cask audit font-droid-sans-mono --download
==> Removing dead symlinks
==> Removing cached downloads
<snip>
/Library/Caches/Homebrew/font-droid-sans-mono--svn-1.00.tar
<snip>
==> Checking out https://github.com/w0ng/googlefontdirectory/trunk/fonts/droidsansmono
audit for font-droid-sans-mono: failed
- download not possible: SHA2 mismatch
Expected: 84143210681b91f6c4de1fb25b5d865038c4c5f5881de4fc88d955c5006198ad
Actual: 0efe50c72e3ae9b94adf3cd803df27acc7652d694d9f7b37007fc7ea45b8cb31
Archive: /Library/Caches/Homebrew/font-droid-sans-mono--svn-1.00.tar
To retry an incomplete download, remove the file above.
Error: audit failed
Not case-sensitive (had to double-check ;)):
$ diskutil info /dev/disk1
<snip>
Mounted: Yes
Mount Point: /
Escaped with Unicode: /
File System Personality: Journaled HFS+
Type (Bundle): hfs
Name (User Visible): Mac OS Extended (Journaled)
Journal: Journal size 40960 KB at offset 0xe8d000
Owners: Enabled
<snip>
from homebrew-cask-fonts.
Related Issues (20)
- Noto fonts incorrectly removed: cannot install Noto Music font HOT 1
- 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
- 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
- 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
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.