-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Creating a project with npm x create-tauri-app
leaves description undefined, causes builds to fail
#2508
Comments
Recommend:
I have started making a patch for item 2, but the only challenge is that |
Last time I checked the dominator recipe, it was working fine but sure lets add a description to Cargo.toml , would love to see a PR, the template is in |
@amrbashir also, would it make sense to add |
The recipe uses |
Ah, okay. That makes sense. I am not sure why it kept telling me to install manually. Perhaps I was not actually running |
…ominator template. Fixes: tauri-apps#2508
NPM / Yarn will warn you to make sure you install transitive deps, because they are not smart enough to figure that out. |
npm x create-tauri-app
leaves description blank, causes builds to failnpm x create-tauri-app
leaves description undefined, causes builds to fail
Co-authored-by: David Von Edge <[email protected]>
Describe the bug
Projects created with
npm x create-tauri-app
do not set a package.description in the the top-levelCargo.toml
. This causes theCargo.toml
to fail being imported incargo_tauri::interface::rust::get_workspace_dir
in the call toCargoSettings::load(&dir);
. This eventually leads totauri build
failing.Additionally, the feedback to the developer as to why the build failure is happening is not particularly helpful. In my case, the failure to identify the workspace causes the rename of the built app from
app
to the final target name to fail due to incorrect path. The parse failure adds a context describing why parsing failed, which is silently consumed by rs.cli. This parse detail might be useful for the developer.To Reproduce
Steps to reproduce the behavior:
1.
cd test-tauri-app/
yarn add -D wasm-pack
yarn tauri build
test-tauri-app/Cargo.toml
:yarn tauri build
Expected behavior
Build succeeds without modifying
test-tauri-app/Cargo.toml
.Screenshots
Platform and Versions (required):
Additional context
Stack Trace
The text was updated successfully, but these errors were encountered: