-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Support ~ in path for dependencies #12874
Copy link
Copy link
Closed as duplicate of#14355
Labels
A-crate-dependenciesArea: [dependencies] of any kindArea: [dependencies] of any kindC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Metadata
Metadata
Assignees
Labels
A-crate-dependenciesArea: [dependencies] of any kindArea: [dependencies] of any kindC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
I would like to specify a dependency relative to my home directory. At the moment I would need to specify the home directory as a full path which is platform dependent, e.g Linux
Proposed Solution
Most shells expand
~into the current users home directory. It would be nice if cargo could do the same.That would than be expanded into the user home directory.
Notes
Currently
~/somethingis resolved toproject-dir/~/somethingwhich is obviously not what is intended by the user.Also looking through existing issues, this might be the same as #12873