Skip to content

Remove the prepended newline in cargo vendor config output#11271

Closed
sionik wants to merge 1 commit intorust-lang:masterfrom
sionik:feature/vendor-rm-newline
Closed

Remove the prepended newline in cargo vendor config output#11271
sionik wants to merge 1 commit intorust-lang:masterfrom
sionik:feature/vendor-rm-newline

Conversation

@sionik
Copy link

@sionik sionik commented Oct 21, 2022

cargo vendor prints all progress to stderr.
After it finished the vendoring it prints the necessary configuration to stdout.

The stdout output starts with a newline which will be removed by this PR.

Tested with cargo vendor | tee vendor_config.

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @weihanglo (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 21, 2022
Signed-off-by: Simon Richter <simon@sinic.eu>
@weihanglo
Copy link
Member

Thanks for your contribution. I wonder if we should fix this in upstream.

@epage, it seems to be a behaviour from toml_edit. Is that newline expected?

@weihanglo weihanglo self-requested a review October 21, 2022 14:08
epage added a commit to epage/toml_edit that referenced this pull request Oct 21, 2022
epage added a commit to epage/toml_edit that referenced this pull request Oct 21, 2022
@epage
Copy link
Contributor

epage commented Oct 21, 2022

Thanks for your contribution. I wonder if we should fix this in upstream.

@epage, it seems to be a behaviour from toml_edit. Is that newline expected?

I've posted a PR with the fix: toml-rs/toml#362

epage added a commit to epage/cargo that referenced this pull request Oct 21, 2022
@epage
Copy link
Contributor

epage commented Oct 21, 2022

Closing in favor of #11273

@epage epage closed this Oct 21, 2022
bors added a commit that referenced this pull request Oct 22, 2022
fix: Remove leading newline in vendor output

This supersedes #11271
@sionik sionik deleted the feature/vendor-rm-newline branch October 24, 2022 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants