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")
Copy link
Owner

@drager drager Nov 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we can use a more precise env var. Like WASM_PACK_SKIP_VERSION_CHECK.

{
let download = Download::at(path.parent().unwrap());
return Ok(Status::Found(download));
}
Expand Down
Loading