Skip to content
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

cargo hf2 panics with alternative target-dir #21

Open
amiraeva opened this issue Jul 13, 2020 · 1 comment
Open

cargo hf2 panics with alternative target-dir #21

amiraeva opened this issue Jul 13, 2020 · 1 comment

Comments

@amiraeva
Copy link

amiraeva commented Jul 13, 2020

In my ~/.cargo/config I point my target-dir to an alternate directory (/tmp/cargo_build) and I get a panic in cargo hf2. Manually copying the contents of the build directory into a local folder named target is a workaround to this issue.

Finished release [optimized] target(s) in 0.03s
    Searching for a connected device with known vid/pid pair.
    Trying  Ok(Some("Adafruit Industries")) Ok(Some("Feather M0"))
    Flashing "/tmp/feather_m0/target/thumbv6m-none-eabi/release/examples/usb_echo"
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/amiraeva/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-hf2-0.2.0/src/main.rs:175:20
@jacobrosenthal
Copy link
Owner

Ideally someone could try out recently bumped cargo project dependency.
Also cargo-metadata seems to be the goto instead of cargo project nowadays. That could be investigated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants