-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trunk build --offline fails to find wasm-bindgen even when available in PATH #650
Comments
Ok, that may be a case of bad error reporting. I think it should work more "expected" with other tools. But wasm-bindgen seems a bit special. For other tools, there's a default version. There's a "required" version. And maybe a system installed version. If a version is required, then the system version must match for trunk to consider the system installed binary. For wasm_bindgen, it will however look into So what seems to happen in this case is that trunk detect a different version in the project's Cargo file than in the system. That will lead to a simple "not found" error. I think it should lead to a "tool version mismatch" error instead. As for your case, I think you need to:
|
In case of using --offline, and requiring a specific version of a tool, the error just says "not found". However, it would be more helpful to indicate that the tool was found, but was of the wrong version ("version mismatch"). Closes: trunk-rs#650
In case of using --offline, and requiring a specific version of a tool, the error just says "not found". However, it would be more helpful to indicate that the tool was found, but was of the wrong version ("version mismatch"). Closes: trunk-rs#650
In case of using --offline, and requiring a specific version of a tool, the error just says "not found". However, it would be more helpful to indicate that the tool was found, but was of the wrong version ("version mismatch"). Closes: #650
yap, that was exactly it, I've updated the Cargo.lock and now the application builds correctly, both in my dev-environment and in the flake. Thanks! |
I'm packaging an application on a Nix flake. To do that I'm using the
--offline
flag. And providing the needed packages as buildInputs.However the build fails with
couldn't find application wasm-bindgen
. If I enter the flake environment thewasm-bindgen
binary is available and I can manually run it.I've been able to reproduce this behavior as well in my development environment (not the one of the flake).
Output:
However I can run the wasm-bindgen binary after that:
If I drop the ``--offline``` flag the application builds correctly, however in the flake build that is not possible.
I've tested both with the nixpkgs trunk which has version 0.18.0 as well as with the 0.18.2 version from the last release.
The text was updated successfully, but these errors were encountered: