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

add option to point to pre-built target location for when build is not in current directory #63

Closed
aaronenberg opened this issue Dec 22, 2022 · 3 comments

Comments

@aaronenberg
Copy link

I'd really love if cargo-deb supported this workflow:

cargo build --release --target-dir ~/foo
cargo deb --no-build --target-dir ~/foo

Any problems with this?

@aaronenberg
Copy link
Author

I see that cargo-deb respects CARGO_TARGET_DIR. So I can set CARGO_TARGET_DIR=~/foo to get my desired behavior.
Still it would be nice to have it as a command-line option.

@kornelski
Copy link
Owner

The env var probably works by being picked by cargo metadata. I'm not sure if it's worth complexity to support it also as an argument. You're the first person I've seen who uses the command-line arg instead of the env var.

@aaronenberg
Copy link
Author

That's fair. I'll probably start using the env var too. Thanks for considering

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