Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f52f77

Browse files
committed
chore(release): bump version to 1.8.0 and update changelog
Bump the project version to 1.8.0 in Cargo.toml, Cargo.lock, and tests. Update the README.md changelog to add a v1.8.0 entry, noting the revert of v1.7.0 due to a discovered problem. Adjust version-related tests to reflect the new version and changelog structure.
1 parent 9d8fdce commit 7f52f77

4 files changed

Lines changed: 23 additions & 9 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "git-wire"
3-
version = "1.7.0"
3+
version = "1.8.0"
44
edition = "2021"
55
authors = ["msr1k <[email protected]>"]
66
license = "MIT"

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ https://github.com/msr1k/git-wire/blob/main/.gitwire
195195

196196
## Changelog
197197

198+
- v1.8.0 (2026/03/30)
199+
200+
Revert v1.7.0, because a problem was found.
201+
198202
- v1.7.0 (2026/03/29)
199203

200204
- Multi-threading performance improvements.

tests/version_update_test.rs

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
// - The v1.6.0 Changelog entry documents the --local / -l option
88

99
const BIN: &str = env!("CARGO_BIN_EXE_git-wire");
10-
const EXPECTED_VERSION: &str = "1.6.0";
10+
const EXPECTED_VERSION: &str = "1.8.0";
1111

1212
// --- --version flag ---
1313

1414
#[test]
15-
fn version_flag_outputs_1_6_0() {
15+
fn version_flag_outputs_1_8_0() {
1616
// Given: the binary is invoked with --version
1717
let output = std::process::Command::new(BIN)
1818
.arg("--version")
@@ -31,7 +31,7 @@ fn version_flag_outputs_1_6_0() {
3131
// --- CARGO_PKG_VERSION ---
3232

3333
#[test]
34-
fn cargo_pkg_version_is_1_6_0() {
34+
fn cargo_pkg_version_is_1_8_0() {
3535
// Given: the package version embedded at compile time
3636
let pkg_version = env!("CARGO_PKG_VERSION");
3737

@@ -45,25 +45,35 @@ fn cargo_pkg_version_is_1_6_0() {
4545
// --- README.md Changelog ---
4646

4747
#[test]
48-
fn readme_changelog_has_v1_6_0_entry() {
48+
fn readme_changelog_has_v1_8_0_entry() {
4949
// Given: README.md at the repository root
5050
let readme = std::fs::read_to_string("README.md").expect("README.md must exist");
5151

5252
// Then: the Changelog section contains a v1.6.0 entry
5353
assert!(
54-
readme.contains("v1.6.0"),
55-
"README.md Changelog should contain 'v1.6.0'"
54+
readme.contains("v1.8.0"),
55+
"README.md Changelog should contain 'v1.8.0'"
5656
);
5757
}
5858

5959
#[test]
60-
fn readme_changelog_v1_6_0_entry_appears_before_v1_5_0() {
60+
fn readme_changelog_v1_8_0_entry_appears_before_v1_5_0() {
6161
// Given: README.md at the repository root
6262
let readme = std::fs::read_to_string("README.md").expect("README.md must exist");
6363

6464
// Then: v1.6.0 appears before v1.5.0 in the file (newer entries first)
65+
let pos_1_8_0 = readme.find("v1.8.0").expect("v1.6.0 must exist in README.md");
66+
let pos_1_7_0 = readme.find("v1.7.0").expect("v1.6.0 must exist in README.md");
6567
let pos_1_6_0 = readme.find("v1.6.0").expect("v1.6.0 must exist in README.md");
6668
let pos_1_5_0 = readme.find("v1.5.0").expect("v1.5.0 must exist in README.md");
69+
assert!(
70+
pos_1_8_0 < pos_1_7_0,
71+
"v1.8.0 entry should appear before v1.7.0 in README.md Changelog"
72+
);
73+
assert!(
74+
pos_1_7_0 < pos_1_6_0,
75+
"v1.7.0 entry should appear before v1.6.0 in README.md Changelog"
76+
);
6777
assert!(
6878
pos_1_6_0 < pos_1_5_0,
6979
"v1.6.0 entry should appear before v1.5.0 in README.md Changelog"

0 commit comments

Comments
 (0)