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

Fix invalid release link generation #2412

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

GuillaumeGomez
Copy link
Member

Fixes #2411.

Sorry in advance for the noise but for some reason I can't run DB migrations locally so I can't run tests. I'll use the CI to check that I did correctly.

@GuillaumeGomez GuillaumeGomez requested a review from a team as a code owner February 9, 2024 19:14
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Feb 9, 2024
@GuillaumeGomez GuillaumeGomez force-pushed the link-generation branch 3 times, most recently from 693a934 to 35fee22 Compare February 9, 2024 21:43
@GuillaumeGomez
Copy link
Member Author

CI passed. \o/

Copy link
Member

@syphar syphar left a comment

Choose a reason for hiding this comment

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

I'll do manual testing now,

but just from reading the code I would say this will drop the target from the version links when I'm on a non-default target, since now you don't use params.target at all any more.

Or am I missing something?

Example:
https://docs.rs/tokio_telegraf/0.5.0/i686-pc-windows-msvc/tokio_telegraf/index.html
In the version links in the dropdown we see the target name too.

@syphar
Copy link
Member

syphar commented Feb 14, 2024

I now ran a local build, and yes, the target is missing.

Also there seems to be another issue:

grafik

@syphar syphar added S-waiting-on-author Status: This PR is incomplete or needs to address review comments and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Feb 14, 2024
@GuillaumeGomez
Copy link
Member Author

Good point. I'll add a test for that as well, thanks!

@GuillaumeGomez
Copy link
Member Author

Extended/fixed test and fixed code as well.

@syphar syphar self-requested a review February 16, 2024 07:28
@github-actions github-actions bot added S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed and removed S-waiting-on-author Status: This PR is incomplete or needs to address review comments labels Feb 16, 2024
@syphar syphar merged commit da730e1 into rust-lang:master Feb 16, 2024
11 checks passed
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Feb 16, 2024
@GuillaumeGomez GuillaumeGomez deleted the link-generation branch February 16, 2024 10:37
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clicking on old version in the topbar menus loads the name of the crate into the searchbar
3 participants