diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-05 11:47:03 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-05 11:47:03 +0300 |
commit | 19cb8fcd22e9d2bc240cbd2b23efa2e19cf7ea52 (patch) | |
tree | 9b3e746ba6d523c080f0f40b5c0798f7e9326da5 /bumper.md | |
parent | 62e5bf8eca44deec7f45bb697ee98298b8abd219 (diff) | |
download | bumper-rs-19cb8fcd22e9d2bc240cbd2b23efa2e19cf7ea52.tar.gz |
feat: update Cargo.lock int Rust projects
If we update Cargo.toml, but not Cargo.lock, and Cargo.lock is in git,
when cargo publish will refuse to publish, because the files are out
of sync.
Diffstat (limited to 'bumper.md')
-rw-r--r-- | bumper.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -91,17 +91,27 @@ project. We use a Rust project for simplicity. ~~~scenario given an installed Bumper +given file foo/src/main.rs from main.rs given file foo/Cargo.toml from Cargo.toml +given file foo/Cargo.lock from Cargo.lock given file foo/debian/changelog from changelog given all files in foo are committed to git when I run, in foo, bumper 1.2.0 then all changes in foo are committed then in foo, git tag v1.2.0 is a signed tag then file foo/Cargo.toml matches regex /version\s*=\s*"1\.2\.0"/ +then file foo/Cargo.lock is newer than foo/Cargo.toml +then file foo/Cargo.lock is committed to git then file foo/debian/changelog matches regex / \(0\.1\.0-1\) / then file foo/debian/changelog matches regex / \(1\.2\.0-1\) / ~~~ +~~~{#main.rs .file .rust} +fn main() { + println!("Hello, world!"); +} +~~~ + ~~~{#Cargo.toml .file .ini} [package] name = "foo" @@ -110,8 +120,11 @@ authors = ["J. Random Hacker <jr@example.com>"] edition = "2018" [dependencies] +anyhow = "1" ~~~ +~~~{#Cargo.lock .file .ini} +~~~ ~~~{#changelog .file} dummy (0.1.0-1) unstable; urgency=low |