You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try to install it based on the Cargo.lock. (This may happen other commands, but in practice, only wasm-bindgen causes the problem.)
However, if the project specifies the version using the git, path, or registry section, this may fail, because the lock file does not reflect it. The workaround is to install wasm-bindgen-cli globally.
Well, I understand this is an extremely rare problem, but I found it when I was working on rustwasm/wasm-bindgen#2105 and I think at least this should be noted somewhere.
The text was updated successfully, but these errors were encountered:
I installed wasm-bingen-cli globally like that, but the cached version is still being run. I don't know why it decided to pick to use 0.2.19 for August of 2018 rustwasm/wasm-bindgen@d9bc0a3. I opened #853.
This seems like the same issue as #853, and the solution is to use [patch] to override the version of wasm-bindgen.
Specifying wasm-bindgen = { git = "https://github.com/rustwasm/wasm-bindgen" } won't work, because it won't affect any of your dependencies, whereas [patch] does.
If the
wasm-bindgen
is not globally installed, these codeswasm-pack/src/command/build.rs
Lines 351 to 352 in 203a5f2
wasm-pack/src/install/mod.rs
Lines 260 to 266 in 203a5f2
try to install it based on the Cargo.lock. (This may happen other commands, but in practice, only
wasm-bindgen
causes the problem.)However, if the project specifies the version using the git, path, or registry section, this may fail, because the lock file does not reflect it. The workaround is to install
wasm-bindgen-cli
globally.Well, I understand this is an extremely rare problem, but I found it when I was working on rustwasm/wasm-bindgen#2105 and I think at least this should be noted somewhere.
The text was updated successfully, but these errors were encountered: