As I was trying to build the project, I saw the error
error: could not rename component file from '/home/esp/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/share/doc/rustfmt' to '/home/esp/.rustup/tmp/1c6h9jf5j5frd374_dir/bk': Invalid cross-device link (os error 18)
Easy fix for that was to execute these commands before running cargo build
export RUSTUP_HOME=/home/esp/rustup
export TMPDIR=/home/esp/rustup/tmp
mkdir -p $TMPDIR
rustup component add rustfmt
This problem doesn't exist in the esp32_latest, and esp32s3_latest tags, which I used before for different projects.
How to reproduce:
cargo install cargo-generate
cargo generate esp-rs/esp-idf-template cargo
> some-name
> esp32h2
> esp-idf 5.2
cd some-name
docker run -it -v ./:/home/esp/some-name espressif/idf-rust:esp32h2_latest bash
cd some-name
cargo build <- error
As I was trying to build the project, I saw the error
Easy fix for that was to execute these commands before running
cargo buildThis problem doesn't exist in the esp32_latest, and esp32s3_latest tags, which I used before for different projects.
How to reproduce: