diff --git a/Cargo.lock b/Cargo.lock index d8f762b..bb7b3e8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1504,7 +1504,7 @@ checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" [[package]] name = "zepter" -version = "0.15.0" +version = "1.0.0" dependencies = [ "anyhow", "assert_cmd", diff --git a/Cargo.toml b/Cargo.toml index 70705f9..d4e6418 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zepter" -version = "0.15.0" +version = "1.0.0" edition = "2021" authors = [ "Oliver Tale-Yazdi" ] description = "Analyze, Fix and Format features in your Rust workspace." diff --git a/src/config/workflow.rs b/src/config/workflow.rs index 0fafb4a..a0a7e8d 100644 --- a/src/config/workflow.rs +++ b/src/config/workflow.rs @@ -173,7 +173,7 @@ impl WorkflowFile { Ok(()) } else { Err(format!( - "Config file version is too new. The file requires at least {}, but the current version is {}. Please update Zepter or ignore this check with `--check-cfg-compatibility=off`.", + "Config file version is too new. The file requires at least version {}, but the current version is {}. Please update Zepter or ignore this check with `--check-cfg-compatibility=off`.", file_version, current_version )) } diff --git a/tests/ui/config/v1/basic.yaml b/tests/ui/config/v1/basic.yaml index c01df50..c3d1894 100644 --- a/tests/ui/config/v1/basic.yaml +++ b/tests/ui/config/v1/basic.yaml @@ -3,25 +3,25 @@ crates: cases: - cmd: run default stdout: | - zepter 0.15.0 + zepter 1.0.0 stderr: | [INFO] Running workflow 'default' [INFO] 1/1 --version - cmd: run stdout: | - zepter 0.15.0 + zepter 1.0.0 stderr: | [INFO] Running workflow 'default' [INFO] 1/1 --version - cmd: '' stdout: | - zepter 0.15.0 + zepter 1.0.0 stderr: | [INFO] Running workflow 'default' [INFO] 1/1 --version - cmd: run my_version stdout: | - zepter 0.15.0 + zepter 1.0.0 stderr: | [INFO] Running workflow 'my_version' [INFO] 1/1 --version @@ -38,7 +38,7 @@ cases: [INFO] 1/1 debug --no-benchmark - cmd: run both stdout: |+ - zepter 0.15.0 + zepter 1.0.0 Num workspace members: 1 Num dependencies: 1 DAG nodes: 0, links: 0 diff --git a/tests/ui/config/v1/finds_all.yaml b/tests/ui/config/v1/finds_all.yaml index f6614e3..3bf8c31 100644 --- a/tests/ui/config/v1/finds_all.yaml +++ b/tests/ui/config/v1/finds_all.yaml @@ -3,7 +3,7 @@ crates: cases: - cmd: '' stdout: | - zepter 0.15.0 + zepter 1.0.0 stderr: | [INFO] Running workflow 'default' [INFO] 1/1 --version @@ -19,7 +19,7 @@ cases: - [ '--version' ] - cmd: '' stdout: | - zepter 0.15.0 + zepter 1.0.0 stderr: | [INFO] Running workflow 'default' [INFO] 1/1 --version @@ -35,7 +35,7 @@ cases: - [ '--version' ] - cmd: '' stdout: | - zepter 0.15.0 + zepter 1.0.0 stderr: | [INFO] Running workflow 'default' [INFO] 1/1 --version @@ -51,7 +51,7 @@ cases: - [ '--version' ] - cmd: run default stdout: | - zepter 0.15.0 + zepter 1.0.0 stderr: | [INFO] Running workflow 'default' [INFO] 1/1 --version @@ -67,7 +67,7 @@ cases: - [ '--version' ] - cmd: run default stdout: | - zepter 0.15.0 + zepter 1.0.0 stderr: | [INFO] Running workflow 'default' [INFO] 1/1 --version @@ -83,7 +83,7 @@ cases: - [ '--version' ] - cmd: run default stdout: | - zepter 0.15.0 + zepter 1.0.0 stderr: | [INFO] Running workflow 'default' [INFO] 1/1 --version @@ -99,7 +99,7 @@ cases: - [ '--version' ] - cmd: run default --config .cargo/polkadot.yaml stdout: | - zepter 0.15.0 + zepter 1.0.0 stderr: | [INFO] Running workflow 'default' [INFO] 1/1 --version @@ -115,7 +115,7 @@ cases: - [ '--version' ] - cmd: run default -c .cargo/polkadot.yaml stdout: | - zepter 0.15.0 + zepter 1.0.0 stderr: | [INFO] Running workflow 'default' [INFO] 1/1 --version diff --git a/tests/ui/config/v1/version_bin.yaml b/tests/ui/config/v1/version_bin.yaml index 9e5af22..864c037 100644 --- a/tests/ui/config/v1/version_bin.yaml +++ b/tests/ui/config/v1/version_bin.yaml @@ -3,16 +3,24 @@ crates: cases: - cmd: run default stderr: | - thread 'main' panicked at 'Invalid config file: "Config file version is too new. The file requires at least 0.100.0, but the current version is 0.15.0. Please update Zepter or ignore this check with `--check-cfg-compatibility=off`."', src/cmd/run.rs:27:46 + thread 'main' panicked at 'Invalid config file: "Config file version is too new. The file requires at least version 2.0.0, but the current version is 1.0.0. Please update Zepter or ignore this check with `--check-cfg-compatibility=off`."', src/cmd/run.rs:27:46 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace code: 101 +- cmd: run default --check-cfg-compatibility=off + stdout: | + Error: Command '' failed with exit code 101 + stderr: | + [INFO] Running workflow 'default' + thread 'main' panicked at 'Invalid config file: "Config file version is too new. The file requires at least version 2.0.0, but the current version is 1.0.0. Please update Zepter or ignore this check with `--check-cfg-compatibility=off`."', src/cmd/run.rs:27:46 + note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace + code: 1 configs: - to_path: .zepter.yaml from_path: null verbatim: | version: format: 1 - binary: 0.100.0 + binary: 2.0.0 workflows: default: diff --git a/tests/ui/root-args/version.yaml b/tests/ui/root-args/version.yaml index b10b518..096efe8 100644 --- a/tests/ui/root-args/version.yaml +++ b/tests/ui/root-args/version.yaml @@ -2,7 +2,7 @@ crates: [] cases: - cmd: --version stdout: | - zepter 0.15.0 + zepter 1.0.0 - cmd: -V stdout: | - zepter 0.15.0 + zepter 1.0.0