Skip to content

Deduplicate entries in the archive of stable standalone installers #770

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

Merged

Conversation

yerke
Copy link
Contributor

@yerke yerke commented Oct 14, 2024

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
Copy link
Collaborator

rustbot commented Oct 14, 2024

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
Copy link
Contributor Author

yerke commented Oct 14, 2024

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
Copy link
Contributor

@Kobzol Kobzol left a comment

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
1 check passed
@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