Skip to content

Commit 87ebb48

Browse files
committed
Add env option SKIP_VERSION_CHECK forcing wasm-pack to use what's there
This is especially useful within distro build environments
1 parent 32e52ca commit 87ebb48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/install/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ pub fn download_prebuilt_or_cargo_install(
6666
if let Ok(path) = which(tool.to_string()) {
6767
debug!("found global {} binary at: {}", tool, path.display());
6868
if check_version(&tool, &path, version)? {
69+
if check_version(&tool, &path, version)? || env::var("SKIP_VERSION_CHECK").map_or(false, |v| v == "1") {
6970
let download = Download::at(path.parent().unwrap());
7071
return Ok(Status::Found(download));
7172
}

0 commit comments

Comments
 (0)