Skip to content

Commit a08085e

Browse files
committed
Update release process for Cargo.
1 parent bc47a59 commit a08085e

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

src/release/process.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,24 @@ Decide on a time to do the release, T.
137137
- [Hacker News](https://news.ycombinator.com/)
138138
- [Users forum](https://users.rust-lang.org/)
139139

140-
- **T+5m** - Tag Cargo the same way as rust-lang/rust and then run
141-
`cargo publish` for the tag you just created. You'll first need to comment
142-
out `cargo-test-macro` from Cargo.toml, then publish `crates-io` (in
143-
`crates/crates-io`) and finally publish `cargo` itself.
140+
- **T+5m** - Release and tag Cargo. In the rust-lang/rust repository on the
141+
**stable branch**:
144142

145-
To publish Cargo you may have to bump the version numbers for the crates-io and Cargo crates; there's no need to do that in a formal commit though, so your tag and the published code may differentiate in that way.
143+
```sh
144+
# Remote "rust-lang" is github.com/rust-lang/rust.git
145+
git fetch rust-lang
146+
git checkout rust-lang/stable
147+
# Make sure submodules are at the correct revision.
148+
git submodule update
149+
cd src/tools/cargo
150+
# Publish to crates.io. This will publish internal dependencies first (if
151+
# necessary), then publish Cargo itself.
152+
./publish.py
153+
# Where YY is the Rust minor release, add one to it (Rust 1.49.0 = Cargo 0.50.0).
154+
CARGO_VERSION="0.YY+1.0"
155+
git tag -u FA1BE5FE $CARGO_VERSION
156+
git push git@github.com:rust-lang/cargo.git $CARGO_VERSION
157+
```
146158

147159
- **T+1hr** Send a PR to the beta branch to comment out `dev: 1` again and
148160
update the date to download from (modifying `src/stage0.txt`).

0 commit comments

Comments
 (0)