-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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] When using a global build.target-dir
for Cargo, cargo tauri dev
panics at 'failed to rename app'.
#4632
Comments
build.target-dir
for Rust, cargo tauri dev
panics at 'failed to rename app'.build.target-dir
for Cargo, cargo tauri dev
panics at 'failed to rename app'.
I'm able to produce this same issue on macOS 12.3 without setting
Platform and versions
|
Installing progressively older versions of cargo-tauri indicates that the issue was introduced in 1.0.1. I'm going to attack it with git bisect and figure out what commit the issue was introduced. That should make the fix easier to determine unless someone already knows what the issue is and how to fix it. |
Custom target dir isn't supported at the moment though we could implement it. @jhutchins can you share your Cargo.toml? we do have some known issues regarding it (specially if you use [[bin]]). The plan is to fix it for the next release. |
@lucasfernog Support would be appreciated. I'm new to Tauri, but if it's a simple-enough change—and it probably is—I can help. |
@lucasfernog here is my Cargo.toml
My reproduction steps are pretty straight froward. I just follow the Getting Started guide.
The error isn't crazy, it is correct that there is no file |
@jhutchins can you share the output of |
|
Describe the bug
When using a global
target-dir
for all projects (instead of storing the builds in the project folder, Cargo writes to~/.cargo_builds
),cargo tauri dev
panics, because "no such file or directory" exists. At a guess, the build script doesn't expand to the full path and ends up looking for a local.cargo_builds
.Reproduction
~/.cargo
).config.toml
if it doesn't already exist.src-tauri/tauri.conf.json
.cargo tauri dev
.Expected behavior
The project should build and a Tauri app window should open. This happens when not using a global
target-dir
.Platform and versions
Stack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: