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

Magic support for cargo xtask #207

Open
passcod opened this issue Jul 13, 2022 · 0 comments
Open

Magic support for cargo xtask #207

passcod opened this issue Jul 13, 2022 · 0 comments
Labels

Comments

@passcod
Copy link
Member

passcod commented Jul 13, 2022

One annoyance with cargo xtask patterns is that in many cases, the xtask command only works from the root of the workspace. Cargo Watch could solve this, though, because things running inside Cargo Watch are already wrapped by nature of running processes from other processes, so we can do magic as part of that wrapping.

For example, we could parse cargo config and figure out if an xtask alias is defined, and if it is, we could replace it in the command environment (with CARGO_ALIAS_XTASK=...) with something that always works from the particular working directory we're invoking the command from.

[This issue is not a confirmed feature, and may not be implemented.]

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

No branches or pull requests

1 participant