Skip to content

Deduplicate entries in the archive of stable standalone installers#770

Merged
Kobzol merged 1 commit into
rust-lang:masterfrom
yerke:yerke/deduplicate-archive-stable-installers
Oct 15, 2024
Merged

Deduplicate entries in the archive of stable standalone installers#770
Kobzol merged 1 commit into
rust-lang:masterfrom
yerke:yerke/deduplicate-archive-stable-installers

Conversation

@yerke

@yerke yerke commented Oct 14, 2024

Copy link
Copy Markdown
Contributor

I added Archive of Rust Stable Standalone Installers page in #733.
Later it was pointed out to me that version 1.8.0 is listed twice on the archive page. My original implementation relied on my assumption that https://static.rust-lang.org/dist/YYYY-MM-DD/channel-rust-1.minor.patch.toml would appear only once in the https://static.rust-lang.org/manifests.txt. (It seems fine at a glance when I was implementing it.) But that is not true for 1.8.0, 1.14.0, 1.15.1, 1.49.0, which have multiple entries.

In this PR I add logic to deduplicate entries in the archive of stable standalone installers and make sure that they are printed in the correct order.

Screenshot that shows the duplicate entries before this PR:
Screenshot 2024-10-14 at 4 06 58 PM

@rustbot

rustbot commented Oct 14, 2024

Copy link
Copy Markdown
Collaborator

r? @ehuss

rustbot has assigned @ehuss.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 14, 2024
@yerke

yerke commented Oct 14, 2024

Copy link
Copy Markdown
Contributor Author

r? @Kobzol

@rustbot rustbot assigned Kobzol and unassigned ehuss Oct 14, 2024
@yerke
yerke force-pushed the yerke/deduplicate-archive-stable-installers branch from 9ca84b3 to a383e36 Compare October 14, 2024 23:11

@Kobzol Kobzol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you :)

@Kobzol
Kobzol merged commit ea3eaa3 into rust-lang:master Oct 15, 2024
@yerke
yerke deleted the yerke/deduplicate-archive-stable-installers branch October 15, 2024 14:50
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