Open eyerust opened 1 year ago
Okay so I think I found the problem. It seems that the tauri tooling didn't like this line
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
cargo tauri android dev
can't find my installed rustup toolchains because RUSTUP_HOME
and CARGO_HOME
where not at their default locations. The gradle script sets a bunch of environment variables but forgets to set those 2 so maybe that should be addressed.
I will not close this issue as this is still a bug that needs to be addressed, but my problem was fixed by not setting RUSTUP_HOME
and CARGO_HOME
.
Describe the bug
When creating a new project using
cargo create-tauri-app
using vanilla Rust in a minimal podman debian container and runningcargo tauri android dev
the command fails.The main problem seems to be:
The image called
tauri-example
uses this Dockerfile:Reproduction
podman run -it --rm --net host tauri-example bash
cargo create-tauri-app
and choose all the default optionscargo tauri android init
cargo tauri android dev
Expected behavior
I expected
cargo tauri android dev
to succeed.Platform and versions
Stack trace
Additional context
No response