cargo-dist icon indicating copy to clipboard operation
cargo-dist copied to clipboard

Allow more checksum algorithms for each file

Open aartoni opened this issue 1 year ago • 2 comments

At the moment, only one algorithm can be used at a time. Providing more checksum files can be useful when you want to provide one using a modern algo such as BLAKE2, along with a widely available one, such as SHA-256.

aartoni avatar Dec 12 '24 08:12 aartoni

We can definitely look into this. It'll be a bit of a reorganization since we have a few things that currently assume there's only one checksum algorithm. Do you mind if I ask what your usecase is? Do you have something specific that wants BLAKE2?

mistydemeo avatar Dec 13 '24 00:12 mistydemeo

I mainly provide BLAKE2 sums for Arch Linux packages. According to their documentation, BLAKE2 sums are to be preferred and should be provided by the upstream.

However, package managers from other distributions still rely on older algos (e.g., Debian, Alpine) and, in general, I'd like to keep providing SHA-256 for compatibility.

aartoni avatar Dec 13 '24 08:12 aartoni