-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'brew cask install djview' causes sha2 mismatch #7136
Comments
(this is with a freshly brew-updated system) |
I've just downloaded the file and can confirm the cask SHA is correct. Is it possible you have a corrupted download? |
Not possible I think since if someone were MITMing the https connection curl would detect it and refuse to download the file (-k / --insecure is not being passed to curl).
Any ideas? |
Can you post your output for |
|
Well that would be much more helpful if |
Could you run |
|
Ok thanks. Any other ideas? Load balancer seeing you in Australia so you get served a correct copy of the file from somewhere near you, while I get served a stale or corrupted copy from a server near me? |
lolcask:
~> cat /Library/Caches/Homebrew/djview-4.5.zip | pup '#starting'
<div id="starting">
<h1>
<a href="/projects/djvu/">
DjVuLibre
</a>
</h1>
<p id="downloader">
Your download will start shortly...
</p>
<script id="redirect-template" type="text/x-handlebars-template">
Learn more: check out <a href="/projects/djvu/postdownload">screenshots, reviews, and more</a>. We'll take you there in a few moments.
</script>
<p id="problems">
Problems with the download? Please use this
<a href="http://downloads.sourceforge.net/project/djvu/DjVuLibre_MacOS/3.5.22%2B4.5/djvulibre-3.5.22%2Bdjview-4.5-intel-3.zip?r=http%3A%2F%2Fdownloads.sourceforge.net%2Fproject%2Fdjvu%2FDjVuLibre_MacOS%2F3.5.22%252B4.5%2Fdjvulibre-3.5.22%252Bdjview-4.5-intel-3.zip&ts=1414987565&use_mirror=hivelocity" class="direct-download">
direct link
</a>
, or try another
<a href="/settings/mirror_choices?projectname=djvu&filename=DjVuLibre_MacOS/3.5.22%2B4.5/djvulibre-3.5.22%2Bdjview-4.5-intel-3.zip" title="A mirror is an exact copy of a download available in multiple locations around the world. Select the one closest to your location." class="mirror" data-release-url="http://downloads.sourceforge.net/project/djvu/DjVuLibre_MacOS/3.5.22%2B4.5/djvulibre-3.5.22%2Bdjview-4.5-intel-3.zip?r=http%3A%2F%2Fdownloads.sourceforge.net%2Fproject%2Fdjvu%2FDjVuLibre_MacOS%2F3.5.22%252B4.5%2Fdjvulibre-3.5.22%252Bdjview-4.5-intel-3.zip&ts=1414987565&use_mirror=hivelocity" rel="nofollow">
mirror
</a>
.
</p>
</div> |
Do you have a custom .curlrc? |
In fact I do!
Moved that aside and now it worked. Good thinking! Should cask be passing curl the -q option? From
|
I doubt we should enforce “naked” curl: there are options which do not impede Cask's function, and ignoring them might suprise users. However, we should document the fact that certain curl configurations can cause unexpected failures with Cask. Thanks for bringing the problem to our attention. |
Will try to send a PR if no one beats me to it.
The text was updated successfully, but these errors were encountered: