Write .cargo/config.toml in x vendor#144124
Conversation
|
r? @clubby789 rustbot has assigned @clubby789. Use |
|
Why not just print out the config info captured? That avoids the trailing and avoids automatically overwriting a potentially existing config.toml. |
|
I found this will working on vendoring support for |
|
Sounds good - the broken output is a bit unfortunate but not the end of the world. r=me when green |
|
I don't think people will appreciate when running |
|
|
||
| impl Step for Vendor { | ||
| type Output = VendorOutput; | ||
| type Output = (); |
There was a problem hiding this comment.
Why remove this? GenerateCopyright can still make use of the final path, instead of having to know about VENDOR_DIR, which is an implementation detail of the vendor step.
There was a problem hiding this comment.
VendorOutput only ever contained the data that should be written to .cargo/config.toml.
There was a problem hiding this comment.
I don't like overwriting the config.toml file on disk (as per my other comment), but if we did that, we can at least return the path to the vendor directory from the step, to avoid other steps reaching for VENDOR_DIR.
This comment has been minimized.
This comment has been minimized.
|
☔ The latest upstream changes (presumably #148987) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@rustbot author |
Initially, this patch was proposed in rust-lang#144124.
Initially, this patch was proposed in rust-lang#144124. Co-authored-by: Yuriy A. Dyagterev <dyagter_y@mcst.ru>
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This change has recently landed. |
|
This now produces a change where I'd suggest adding a flag to |
|
The only change in this PR is to also write the config files with |
|
Yeah, that is the only situation that changed, but it is still a change, and I don't think it's great if bootstrap goes and modifies the source directories (which I consider anything under |
|
I mean it already modifies the source directory by adding |
|
Yeah, strictly speaking that is also source directory modification, but then we could say that creating the |
x vendor hides the cargo vendor telling you what to write to
.cargo/config.toml. to use the vendored sources, so without this PR it isn't obvious how to use the vendored sources.