Skip to main content

verify

Function verify 

Source
pub fn verify(archive: &Path, expected: &str) -> Result<(), CliError>
Expand description

Check a file against the hash it is supposed to have.

The hash comes from the rucc release rather than from the artifact or from the server that served it, which is the only arrangement where a check means anything. Section 13.2 says a mismatch is a hard failure with no override flag, so there is no argument here that could turn one into a warning.

ยงErrors

A file that cannot be read, and a hash that does not match. The message names both hashes, because the first thing anybody does with a mismatch is ask whether they downloaded the wrong thing or the right thing badly, and the two look different.