-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[bug] [v2] Cargo assertion failure during consecutive Tauri builds #9547
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
[bug] [v2] Cargo assertion failure during consecutive Tauri builds #9547
Comments
After digging a bit more into the problem, it seems to be directly related to the following warning:
Although I tried to ignore that warning, after removing After revisiting the docs, this is actually the intended configuration. Since I don't have a glue, how the extra crate type ended up there, I guess this issue can be closed. |
Same for me, after removing I don't know how it ended up there, but my app stopped working right after I ran |
* Fix crate type Fixes tauri-apps/tauri#9547 * add change file --------- Co-authored-by: Lucas Nogueira <[email protected]>
Describe the bug
I've just migrated my project to tauri v2 and cargo fails to build the project because of the following assertion
mtimes.insert(output.clone(), mtime).is_none()
This only happens in consecutive builds. The first build after running
cargo clean
always works. The rebuild triggered by saving a file whiletauri dev
is running, fails the same way.These errors occur on both windows & liunx with the same behavior.
Reproduction
You can find the project itself at https://github.com/fabiankachlock/zwoo
Follow these steps to reporduce:
git clone [email protected]:fabiankachlock/zwoo.git
cd ./zwoo/frontend
git checkout feat/ZWOO-458-migrate-tauri
yarn
(install frontend deps)yarn vite --mode tauri --port 8070
(start frontend)yarn tauri dev
should work fine the first time, but running it a second time failsExpected behavior
The project builds just fine even after consecutive calls to
tauri dev/build
or saving a file whiletauri dev
is active.Full
tauri info
outputThe windows machine:
The linux machine:
Stack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: