-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 named path bases to cargo (v2) #3529
Conversation
Mind fixing the 'Rendered' link in the OP? https://github.com/dpaoliello/rfcs/blob/basepath/text/3529-cargo-path-bases.md :) |
Oops, my bad, thanks! |
Creating a thread on Rust internals to discuss alternative solutions for this issue: https://internals.rust-lang.org/t/integration-with-mono-repos-via-intermediate-directories/20160 |
We discussed this in today's @rust-lang/cargo meeting. We were generally in favor, but wanted to see a few changes made. @rfcbot merge First, this should be @rfcbot concern rename-to-base-paths Second, it should be possible to define this in @rfcbot concern define-in-manifest-override-in-config Third, we should restrict the possible names for bases, to reserve space for extension in the future. We felt that base names should be restricted to the same naming as package names: "The name must use only alphanumeric characters or - or _, and cannot be empty." @rfcbot concern base-names-alphanumeric-with-dash-or-underscore Finally, this should define a mechanism for Cargo to provide built-in base paths. User-defined base paths should shadow built-in base paths, so that we can add more in the future without creating conflicts. And we should provide a built-in @rfcbot concern allow-built-in-base-paths-with-shadowing |
Team member @joshtriplett has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
Introduce shared base directories in Cargo configuration files that in turn enable base-relative path dependencies.
@joshtriplett I've updated the RFC to address these concerns Also, I especially love the built-in |
@rfcbot resolved rename-to-base-paths |
@rfcbot resolved base-names-alphanumeric-with-dash-or-underscore |
@rfcbot resolved define-in-manifest-override-in-config |
@dpaoliello Thank you for the updates! |
@rfcbot resolved comments |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this @dpaoliello and all commentors and reviewers!
Implement base paths (RFC 3529) 1/n: path dep and patch support RFC: rust-lang/rfcs#3529 Tracking Issue: #14355 This PR add support in path dependencies and `patch` table and the `workspace` built-in path base.
RFC: rust-lang/rfcs#3529 Tracking Issue: rust-lang#14355 This PR adds the `--base` option to `cargo add` to allow adding a path dependency with a path base.
RFC: rust-lang/rfcs#3529 Tracking Issue: rust-lang#14355 This PR adds the `--base` option to `cargo add` to allow adding a path dependency with a path base.
RFC: rust-lang/rfcs#3529 Tracking Issue: rust-lang#14355 This PR adds the `--base` option to `cargo add` to allow adding a path dependency with a path base.
RFC: rust-lang/rfcs#3529 Tracking Issue: rust-lang#14355 This PR adds the `--base` option to `cargo add` to allow adding a path dependency with a path base.
RFC: rust-lang/rfcs#3529 Tracking Issue: rust-lang#14355 This PR adds the `--base` option to `cargo add` to allow adding a path dependency with a path base.
RFC: rust-lang/rfcs#3529 Tracking Issue: rust-lang#14355 This PR adds the `--base` option to `cargo add` to allow adding a path dependency with a path base.
Implement path-bases (RFC 3529) 2/n: `cargo [add|remove|update]` support RFC: rust-lang/rfcs#3529 Tracking Issue: #14355 This PR adds the `--base` option to `cargo add` to allow adding a path dependency with a path base.
RFC: rust-lang/rfcs#3529 Tracking Issue: rust-lang#14355 This PR adds the `--base` option to `cargo add` to allow adding a path dependency with a path base.
Introduce shared base directories in Cargo configuration files that in turn enable base-relative path dependencies.
Rendered
Draft Implementation PR: rust-lang/cargo#12974
This is a resurrection of @jonhoo's RFC (#3074). Many thanks and kudos to him for the idea, original RFC text and original implementation.
FCP proposed: checkboxes at #3529 (comment)
Tracking Issue: rust-lang/cargo#14355