Skip to content

Commit 5d6ea59

Browse files
Merge pull request #588 from ehuss/cargo-release-version
Avoid manual step in cargo release process.
2 parents d664dd1 + 428cbd8 commit 5d6ea59

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/release/process.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ Decide on a time to do the release, T.
148148
# Publish to crates.io. This will publish internal dependencies first (if
149149
# necessary), then publish Cargo itself.
150150
./publish.py
151-
# Where YY is the Rust minor release, add one to it (Rust 1.49.0 = Cargo 0.50.0).
152-
CARGO_VERSION="0.YY+1.0"
151+
CARGO_VERSION=$(cargo read-manifest | jq -r .version)
153152
git tag -u FA1BE5FE $CARGO_VERSION
154153
git push git@github.com:rust-lang/cargo.git $CARGO_VERSION
155154
```

0 commit comments

Comments
 (0)