diff --git a/.versionbot/CHANGELOG.yml b/.versionbot/CHANGELOG.yml index a95f2f7..5a2a568 100644 --- a/.versionbot/CHANGELOG.yml +++ b/.versionbot/CHANGELOG.yml @@ -1,3 +1,38 @@ +- commits: + - subject: Check for log device before starting the migration + hash: 34febb5d80b45df6134b9d868194016a30126d49 + body: | + Previously, we'd check for the log device (passed with `--log-to`) only + after the user confirmed to proceed with the migration. And then, if the + device was not valid, takeover would keep running without storing the + stage 2 logs anywhere. + + In other words, a mistake in the command-line arguments could cause + important logs to be lost. + + With this commit, we check the the log device at a much earlier point + (before asking the user for confirmation to proceed), and if the device + provided is no good, we log an error message and exit. This allows the + user to fix the command-line arguments and run again. + footer: + Signed-off-by: Leandro Motta Barros + signed-off-by: Leandro Motta Barros + Change-type: minor + change-type: minor + author: Leandro Motta Barros + - subject: Refactor early checks to a separate module + hash: 87cc52465ebefb791f2bf35a30d8587841fabeb3 + body: | + This is in preparation for a bigger change that will come next. + footer: + Signed-off-by: Leandro Motta Barros + signed-off-by: Leandro Motta Barros + Change-type: patch + change-type: patch + author: Leandro Motta Barros + version: 0.7.0 + title: "" + date: 2024-05-03T04:47:12.120Z - commits: - subject: Add option to change device type hash: 2bfb52c339ad9a48bfed9c64c734516d5db435af diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e6f2cb..28e0852 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY! This project adheres to [Semantic Versioning](http://semver.org/). +## v0.7.0 - 2024-05-03 + +* Check for log device before starting the migration [Leandro Motta Barros] +* Refactor early checks to a separate module [Leandro Motta Barros] + ## v0.6.0 - 2024-05-02 * Add option to change device type [Rahul Thakoor] diff --git a/Cargo.lock b/Cargo.lock index b6be437..bb12f3d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1373,7 +1373,7 @@ dependencies = [ [[package]] name = "takeover" -version = "0.6.0" +version = "0.7.0" dependencies = [ "cfg-if 0.1.10", "clap", diff --git a/Cargo.toml b/Cargo.toml index d7988c1..5463908 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "takeover" description = "Brownfield device migration tool to balenaOS and balenaCloud" -version = "0.6.0" +version = "0.7.0" authors = ["balena.io"] edition = "2018" publish = false