mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-09 14:20:29 +00:00
codegen: Tweak log message
This commit is contained in:
@@ -189,13 +189,13 @@ fn main() -> Result<()> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
eprintln!("downloading {url} for checksum");
|
eprintln!("downloading {url} for checksum...");
|
||||||
let download_cache = download_cache_dir.join(format!(
|
let download_cache = download_cache_dir.join(format!(
|
||||||
"{version}-{platform:?}-{}",
|
"{version}-{platform:?}-{}",
|
||||||
Path::new(&url).file_name().unwrap().to_str().unwrap()
|
Path::new(&url).file_name().unwrap().to_str().unwrap()
|
||||||
));
|
));
|
||||||
if download_cache.is_file() {
|
if download_cache.is_file() {
|
||||||
eprintln!("{url} is already downloaded");
|
eprintln!(" already downloaded");
|
||||||
fs::File::open(download_cache)?.read_to_end(&mut buf)?;
|
fs::File::open(download_cache)?.read_to_end(&mut buf)?;
|
||||||
} else {
|
} else {
|
||||||
download(&url)?.into_reader().read_to_end(&mut buf)?;
|
download(&url)?.into_reader().read_to_end(&mut buf)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user