Closed zgosalvez closed 3 years ago
I can confirm that https://pock.dev/download.php?file=pock_0_7_2.zip
via a browser is fine, but via curl
it downloads a corrupted .zip
file that is in fact just a text/html
file:
|-> curl -sLI https://pock.dev/download.php?file=pock_0_7_2.zip
HTTP/1.1 200 OK
Server: nginx
Date: Sat, 28 Nov 2020 07:38:42 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Not sure how to fix this?
Not sure how to fix this?
@miccal, after perusing around with the HTML source, using the https://pock.dev/download.php?file=pock_0_7_2.zip&nw=1 works! Note: The working URL to download has the appended &nw=1
string.
Thank you for the report and the suggested fix @zgosalvez.
My pleasure, @miccal. Thank you for the quick implementation.
General troubleshooting steps
--force
.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
The file being downloaded by Homebrew is an HTML page, instead of the ZIP file, which is causing the checksum to fail. I confirmed that the ZIP file downloaded from the Cask's URL at https://pock.dev/download.php?file=pock_0_7_2.zip has the same SHA256 as the Cask. However, since Homebrew is downloading the URL as an HTML page, the checksum fails. In the outputs below,
/Users/[redacted]/Library/Caches/Homebrew/downloads/0b5fce3a8e7ee8ddaff5e6f502882d42a209868ffc27334f4a0815bdfa2057db--file=pock_0_7_2.zip
can be renamed to/Users/[redacted]/Library/Caches/Homebrew/downloads/0b5fce3a8e7ee8ddaff5e6f502882d42a209868ffc27334f4a0815bdfa2057db--file=pock_0_7_2.html
, which shows the HTML page when you visit the URL in the web browser.Command that failed
Output of command with
--verbose --debug
Output of
brew doctor --verbose
Output of
brew tap