kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
431 stars 52 forks source link

--profile with does not effect `--no-build` #34

Closed Licenser closed 2 years ago

Licenser commented 2 years ago

when specifying --profile debug and --no-build cargo deb still looks in target/release

❯ cargo deb --verbose --no-build --no-strip --target x86_64-unknown-linux-gnu --output /home/heinz/tremor-runtime/packaging/out --deb-version 0.12.2 --profile debug
cargo-deb: Asset file path does not match any files: /home/heinz/tremor-runtime/target/release/tremor
kornelski commented 2 years ago

This tool is only for making releases, I don't plan to support anything other than target/release.

If you want to make a release with debug information then the correct way is to specify debug=true in a release profile.

kornelski commented 2 years ago

And target/debug is a bit confused in Cargo, because the profile for it is called "dev"