SHA2 mismatch with sauce-code-powerline #118
Comments
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? |
Still fails unfortunately.
Just a question: why is it using SVN? It's a normal git-repo, no? |
It is using the git/SVN gateway as a hack to download multiple files. Casks cannot (yet) have multiple I still can't duplicate your problem, so I can't figure out how to work on it. Could you post the bad download Can anyone else duplicate? @jimbojsb ? |
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 |
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 |
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? |
No worries, it was I who implied it. :-) yep that's it, osx journaled case sensitive.
|
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 |
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? |
@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. |
@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. |
@rolandwalker I think all my hashes match others mentioned above at one point or another. |
@alcesleo yes. One could argue that the fundamental bug is Apple's, but homebrew-cask needs to work around it. |
@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 |
The conclusion is that the So we need to reimplement the SVN download strategy without |
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
Not case-sensitive (had to double-check ;)):
|
pending a fix for the underlying issue. closes Homebrew#117 closes Homebrew#118
Hi, cool project!
Can't get source code powerline to work though:
$ brew cask install font-sauce-code-powerline ==> Checking out https://github.com/Lokaltog/powerline-fonts/trunk/SourceCodePro Error: 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.
Any ideas?
The text was updated successfully, but these errors were encountered: