-
Notifications
You must be signed in to change notification settings - Fork 51
Update Rust maintenance steps #354
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
Open
maxgmr
wants to merge
23
commits into
ubuntu:main
Choose a base branch
from
maxgmr:new-rust-update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The tarball format depends on the particular maintenance task at hand, so a universal example doesn't make sense.
This is no longer needed because of the new update process.
The version string format for the rustc package has changed. Some improvements for clarity have been made too.
The new update process has dropped the autogenerated list of ignored vendored dependencies in favour of this method instead.
The tarball name has changed, and it's a good idea to make a backup here, so I added instructions for that.
The new process for pruning unwanted vendored dependencies is done automatically rather than manually, so instructions for pruning are no longer needed. These instructions have been replaced with instructions for setting up the cargo-vendor-filterer tool that does this process automatically.
Since we now generate the vendored deps in a different way, we now also search for and prune vendored C libs differently.
Since we now use two orig tarballs instead of one and a different version string format, we must update these steps as well.
Now that we have crate stubs instead of completely-pruned crates, we can't just check for a bunch of removed files. Instead, we can just spot-check a few crates we know we shouldn't have to ensure they've been stubbed.
Previously, this step used to happen as a side-effect of running an obsolete script for updating pruned dependencies. Now that it's done intentionally by running its own script, it has its own step.
d/control.in is an obsolete file that was removed several Rust versions ago.
I've changed this section to a note because it's just a way to fix a potential issue the maintainer may run into rather than a fundamental step of the build process.
Thankfully, I've updated the package so it handles its own dependencies without requiring the maintainer to set up any venvs on their own.
This is a necessary step for properly handling the copyright entries of stubbed crates.
Necessary now that there are more steps.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Over the past few months I've automated and improved several steps of the Rust update process.
I've updated the "How to update Rust" page with the following changes:
Checklist
Additional notes (optional)
I understand this is a very large diff. Because of this, I've split up my changes as much as possible. If you'd prefer I'd group up my changes so they're organized more like the list of changes above, please let me know. Thanks!