Allow config-relative paths in command aliases #15083
Labels
A-aliases
Area: command aliases
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Problem
When using nested-workspaces it's not possible to use the normal
xtask
pattern as thextask
package does not exist in the inner workspace. It would be useful if in the alias we can explicitly specify that it uses this workspace's manifest even if the current-directory is within another one.Proposed Solution
One idea I had was something similar to how
[env]
lets you specifyrelative = true
, if that were supported for components of the alias then it could be something like:Notes
This is sort of related to #9123, but that cli flag doesn't work for this usecase for two reasons:
.cargo/config.toml
.xtask
still wants to be able to resolve its own arguments relative to where it's being run from, we just want to change the path used to find the binary to run.The text was updated successfully, but these errors were encountered: