without integration

This commit is contained in:
2023-01-27 08:32:40 +01:00
parent 078e2d9c2c
commit b6186aa901
3 changed files with 3 additions and 21 deletions

View File

@@ -15,7 +15,7 @@ impl Cli {
let matches = self.cmd.get_matches_from(args);
match matches.subcommand() {
Some(("generate", args)) => Ok(()),
Some(("generate", _args)) => Ok(()),
_ => eyre::bail!("command missing"),
}
}

View File

@@ -132,10 +132,10 @@ impl Downloader {
Ok(cli_bin_path)
}
fn download(&self, path: PathBuf) -> eyre::Result<PathBuf> {
fn download(&self, _path: PathBuf) -> eyre::Result<PathBuf> {
let expected_checksum = self.expected_checksum()?;
let (actual_hash, tempbin) = self.extract_cli_archive()?;
let (actual_hash, _tempbin) = self.extract_cli_archive()?;
if expected_checksum != actual_hash {
eyre::bail!("downloaded CLI binary checksum doesn't match checksum from checksums.txt")