Closed jkfran closed 1 year ago
I am not having this issue. I just downloaded the file, and it matches the SHA256:
Having the same issue just now:
❯ brew install killport
==> Fetching jkfran/killport/killport
==> Downloading https://github.com/jkfran/killport/releases/download/v0.6.0/killport-aarch64-apple-darwin.tar.gz
Already downloaded: /Users/barnabas/Library/Caches/Homebrew/downloads/dcd8642740025541c389466fd4d65f20a4b31e1b178eb11971d2ebdd2747b345--killport-aarch64-apple-darwin.tar.gz
Error: killport: SHA256 mismatch
Expected: b31402afc2e59b1483a80c2ba1692a41ea4642c9f0d1c6a5c5b80e9e66c9bbae
Actual: dde62729e132609ca90e4d4c9995364c2653f117663113cd910ee3091dbf2b2e
File: /Users/barnabas/Library/Caches/Homebrew/downloads/dcd8642740025541c389466fd4d65f20a4b31e1b178eb11971d2ebdd2747b345--killport-aarch64-apple-darwin.tar.gz
To retry an incomplete download, remove the file above.
rm Users/barnabas/Library/Caches/Homebrew/downloads/dcd8642740025541c389466fd4d65f20a4b31e1b178eb11971d2ebdd2747b345--killport-aarch64-apple-darwin.tar.gz
Then try to install again. Hopefully it will fix the issue.
No luck, see below:
❯ rm /Users/barnabas/Library/Caches/Homebrew/downloads/dcd8642740025541c389466fd4d65f20a4b31e1b178eb11971d2ebdd2747b345--killport-aarch64-apple-darwin.tar.gz
❯ brew install killport
==> Downloading https://formulae.brew.sh/api/formula.jws.json
#################################################################################################################################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
##O=-# #
==> Fetching jkfran/killport/killport
==> Downloading https://github.com/jkfran/killport/releases/download/v0.6.0/killport-aarch64-apple-darwin.tar.gz
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/615362447/8d748110-f777-41e3-b925-d3b3118a35a7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Cre
#################################################################################################################################################################################### 100.0%
Error: killport: SHA256 mismatch
Expected: b31402afc2e59b1483a80c2ba1692a41ea4642c9f0d1c6a5c5b80e9e66c9bbae
Actual: dde62729e132609ca90e4d4c9995364c2653f117663113cd910ee3091dbf2b2e
File: /Users/barnabas/Library/Caches/Homebrew/downloads/dcd8642740025541c389466fd4d65f20a4b31e1b178eb11971d2ebdd2747b345--killport-aarch64-apple-darwin.tar.gz
To retry an incomplete download, remove the file above.
Same here, running rm ...
then rerunning brew install killport
always results in SHA256 mismatch
I am completely speechless. I am getting this new sha256sum right now:
How did the sha256sum change? A few hours ago, when I downloaded the file: https://github.com/jkfran/killport/issues/5#issuecomment-1521619774
I am the creator of this tool. I also used this architecture and installed it using Homebrew without this issue. I didn't release any version lately. You can check the releases which are built on GitHub and pull from there: https://github.com/jkfran/killport/releases
Is there a logical explanation for this?
Could it be related to this?
I keep finding reports on the internet about people having similar issues on GitHub: https://security.stackexchange.com/questions/240204/how-can-the-authenticity-of-releases-on-github-and-gitlab-be-ensured-can-their
I updated the formula. So:
brew update
brew install killport
I think it should now work. I will find a better solution, any suggestion is welcome.
That fixed the issue for me. Thank you @jkfran.
brew update
now fixes the issue. However, it did not work in the past.
Thank you, everyone, for using this tool. I will close this issue for now. Any contribution is welcome!
Tried installing from brew but get this error (copy-pasted from my terminal):