Skip to content
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

[beta] Fix old lockfile encoding wrt newlines #7274

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

alexcrichton
Copy link
Member

This is a beta backport of #7262

This commit fixes "old lockfile" encodings back to what they were prior
to rust-lang#7070 with respect to newlines. The changes in rust-lang#7070 accidentally
introduced a change where old lockfiles might have some extraneous
newlines removed unintentionally.

In rust-lang#7070 it was attempted to clean up how newlines are emitted to ensure
a trailing blank newline never shows up at the end of the file, but this
acccidentally regressed cases where today we actually do have blank
newlines at the end of lock files. This commit instead restores all the
previous newline handling, and then scopes the "remove trailing
newlines" fix to specifically just the new encoding.

Closes rust-lang#7254
@rust-highfive
Copy link

r? @ehuss

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 20, 2019
@alexcrichton alexcrichton changed the base branch from master to rust-1.38.0 August 20, 2019 16:44
@ehuss
Copy link
Contributor

ehuss commented Aug 20, 2019

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 20, 2019

📌 Commit 458d607 has been approved by ehuss

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 20, 2019
@bors
Copy link
Collaborator

bors commented Aug 20, 2019

⌛ Testing commit 458d607 with merge c3829275923539a65a04dc98c920b5921e84728b...

@ehuss
Copy link
Contributor

ehuss commented Aug 20, 2019

Hm, this will probably fail due to at least toml. I'll see what happens and then manually merge, I think.

@bors
Copy link
Collaborator

bors commented Aug 20, 2019

💔 Test failed - checks-azure

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 20, 2019
@ehuss ehuss merged commit 23ef9a4 into rust-lang:rust-1.38.0 Aug 20, 2019
bors added a commit to rust-lang/rust that referenced this pull request Aug 27, 2019
[BETA] Update cargo

1 commits in 3f700ec43ce72305eb5315cfc710681f3469d4b4..23ef9a4ef8a96d09b1fd67b2f4e023f416bb1ff1
2019-08-19 22:43:12 +0000 to 2019-08-20 10:39:12 -0700
- [beta] Fix old lockfile encoding wrt newlines (rust-lang/cargo#7274)
@ehuss ehuss added this to the 1.38.0 milestone Feb 6, 2022
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