You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cargo is tracked in the [rust-lang/rust] repository using a [git submodule].
34
+
It is updated manually about once a week by a Cargo team member.
35
+
However, anyone is welcome to update it as needed.
36
+
37
+
[@ehuss] has a tool called [subup](https://github.com/ehuss/subup) to automate the process of updating the submodule, updating the lockfile, running tests, and creating a PR.
38
+
Running the tests ahead-of-time helps avoid long cycle times waiting for bors if there are any errors.
39
+
Subup will also provide a message to include in the PR with a list of all PRs it covers.
40
+
Posting this in the PR message also helps create reference links on each Cargo PR to the submodule update PR to help track when it gets merged.
41
+
42
+
The following is an example of the command to run in a local clone of rust-lang/rust to run a certain set of tests of things that are likely to get broken by a Cargo update:
43
+
44
+
```bash
45
+
subup --up-branch update-cargo \
46
+
--commit-message "Update cargo" \
47
+
--test="src/tools/linkchecker tidy \
48
+
src/tools/cargo \
49
+
src/tools/rustfmt \
50
+
src/tools/rls" \
51
+
src/tools/cargo
52
+
```
53
+
54
+
If doing a [beta backport](#beta-backports), the command is similar, but needs to point to the correct branches:
0 commit comments