From df3960bf56d22d3e750aaab66eb3752b2ae4a50f Mon Sep 17 00:00:00 2001 From: jutty Date: Wed, 18 Feb 2026 17:08:04 -0300 Subject: [PATCH] Add logging to version consistency check --- .justfile | 12 ++++++++++-- Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.justfile b/.justfile index 0799a57..64a65ee 100644 --- a/.justfile +++ b/.justfile @@ -241,8 +241,16 @@ version-assess: manifest_version=$(grep '^version' Cargo.toml | cut -d \" -f 2) lockfile_version=$(grep -A 1 'name = "en"' Cargo.lock | grep version | cut -d '"' -f 2) - [ "$last_tag" = "$manifest_version" ] - [ "$last_tag" = "$lockfile_version" ] + if + [ "$last_tag" != "$manifest_version" ] || + [ "$last_tag" != "$lockfile_version" ] + then + printf 'Last tag: %s\nManifest: %s\nLockfile: %s\n' \ + "$last_tag" "$manifest_version" "$lockfile_version" + exit 1 + fi + +alias va := version-assess # BUILD diff --git a/Cargo.lock b/Cargo.lock index 8d55376..59a26da 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -259,7 +259,7 @@ dependencies = [ [[package]] name = "en" -version = "0.1.5" +version = "0.1.6" dependencies = [ "axum", "serde", diff --git a/Cargo.toml b/Cargo.toml index c81f624..2c25b9b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "en" -version = "0.1.5" +version = "0.1.6" description = "A non-linear writing instrument." license = "AGPL-3.0-only"