bbqsrc / cargo-ndk

Compile Rust projects against the Android NDK without hassle
Apache License 2.0
712 stars 64 forks source link

Panic creating output dir "Not a directory" #138

Closed SamRodri closed 3 months ago

SamRodri commented 3 months ago

If a component of the output path is a file cread_dir_all fails with this error:

location: /home/sam/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-ndk-3.5.4/src/cli.rs:574:40
message: failed to create output directory: Os { code: 20, kind: NotADirectory, message: "Not a directory" }
args: ["/home/sam/.cargo/bin/cargo-ndk", "ndk", "-t", "aarch64-linux-android", "-o", "target/build-apk/zng-example-multi/source.apk/jniLibs", "build", "-p", "zng-example-multi"]

This is an invalid input that the user must fix, but it asked me to make a report so here it is, perhaps it should not be a panic?