Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/install/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ pub fn download_prebuilt_or_cargo_install(
// `cargo install`, for example.
if let Ok(path) = which(tool.to_string()) {
debug!("found global {} binary at: {}", tool, path.display());
if check_version(&tool, &path, version)? {
if check_version(&tool, &path, version)?
|| env::var("SKIP_VERSION_CHECK").map_or(false, |v| v == "1")
{
let download = Download::at(path.parent().unwrap());
return Ok(Status::Found(download));
}
Expand Down
Loading