Skip to content
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

Discover and support checksum files alongside the main package #440

Open
passcod opened this issue Sep 28, 2022 · 2 comments
Open

Discover and support checksum files alongside the main package #440

passcod opened this issue Sep 28, 2022 · 2 comments
Labels
Report: feature request New feature request

Comments

@passcod
Copy link
Member

passcod commented Sep 28, 2022

Something a number of packages do is have a .sha256 (and/or others) alongside the file in the releases:

https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-dist-v0.3.0-x86_64-unknown-linux-musl.tar.gz
https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-dist-v0.3.0-x86_64-unknown-linux-musl.tar.gz.sha256
https://github.com/orhun/git-cliff/releases/download/v0.9.2/git-cliff-0.9.2-x86_64-apple-darwin.tar.gz
https://github.com/orhun/git-cliff/releases/download/v0.9.2/git-cliff-0.9.2-x86_64-apple-darwin.tar.gz.sha512

Once we have checksum-checking support, we should auto-discover those for common hash algorithms (sha256, sha512, b2, b3).

@passcod passcod added the Report: feature request New feature request label Sep 28, 2022
@passcod
Copy link
Member Author

passcod commented Sep 28, 2022

Also the format of these is a text file containing either:

  • the hash in hex and nothing else
  • the hash and filename, in shaNsum CLI tool format

@NobodyXu
Copy link
Member

NobodyXu commented Sep 28, 2022

Also the format of these is a text file containing the hash in hex and nothing else.

git-cliff also contains the filename of the archive, which I think is generated by sha512 command.
We can simply trim that though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Report: feature request New feature request
Projects
None yet
Development

No branches or pull requests

2 participants