From 078cbe4b176e8d8cbd27aba42d579fd649edd028 Mon Sep 17 00:00:00 2001 From: Alexander Gil Date: Fri, 21 Jun 2024 10:58:42 +0200 Subject: [PATCH] release: Version 1.10.2 Signed-off-by: Alexander Gil --- .github/workflows/auto-tag.yaml | 2 +- CHANGELOG.md | 405 +++++++++++++++++++------------- Cargo.lock | 6 +- Cargo.toml | 2 +- cliff.toml | 4 +- mdbook_rash/Cargo.toml | 2 +- rash_core/Cargo.toml | 2 +- 7 files changed, 255 insertions(+), 168 deletions(-) diff --git a/.github/workflows/auto-tag.yaml b/.github/workflows/auto-tag.yaml index 3cd8f119..2436d32a 100644 --- a/.github/workflows/auto-tag.yaml +++ b/.github/workflows/auto-tag.yaml @@ -3,7 +3,7 @@ name: Auto tag on: push: branches: - - main + - master jobs: tag: diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cbe31ea..5c220403 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,320 +5,407 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v1.10.2](https://github.com/rash-sh/rash/tree/v1.10.2) - 2024-06-21 + +### Added + +- ci: Add automerge in patch versions for renovate +- ci: Add autotag workflow + +### Build + +- deps: Update Rust crate nix to 0.28 +- deps: Update softprops/action-gh-release action to v2 +- deps: Update mindsers/changelog-reader-action action to v2.2.3 +- deps: Bump mio from 0.8.10 to 0.8.11 +- deps: Update Rust crate serde_with to 3.7 +- deps: Update wagoid/commitlint-github-action action to v6 +- deps: Update Rust crate similar to 2.5 +- deps: Update rust Docker tag to v1.77.0 +- deps: Update rust Docker tag to v1.77.1 +- deps: Update KSXGitHub/github-actions-deploy-aur action to v2.7.1 +- deps: Update wagoid/commitlint-github-action action to v6.0.1 +- deps: Update Rust crate serde_with to 3.8 +- deps: Update Rust crate clap to 4.5.4 +- deps: Update Rust crate criterion to 0.5.1 +- deps: Update rust Docker tag to v1.77.2 +- deps: Update Rust crate byte-unit to 5.1.4 +- deps: Update Rust crate cargo-husky to 1.5.0 +- deps: Update Rust crate chrono to 0.4.38 +- deps: Update Rust crate fern to 0.6.2 +- deps: Update Rust crate env_logger to 0.11.3 +- deps: Update Rust crate ignore to 0.4.22 +- deps: Update Rust crate itertools to 0.12.1 +- deps: Update Rust crate log to 0.4.21 +- deps: Update Rust crate proc-macro2 to 1.0.81 +- deps: Update Rust crate regex to 1.10.4 +- deps: Update Rust crate semver to 1.0.22 +- deps: Update Rust crate serde to 1.0.200 +- deps: Update Rust crate serde_with to 3.8.1 +- deps: Update Rust crate serde_json to 1.0.116 +- deps: Update Rust crate strum to 0.26.2 +- deps: Update Rust crate quote to 1.0.36 +- deps: Update Rust crate schemars to 0.8.17 +- deps: Update Rust crate serde-error to 0.1.2 +- deps: Update Rust crate tempfile to 3.10.1 +- deps: Update rust Docker tag to v1.78.0 +- deps: Update Rust crate strum_macros to 0.26.2 +- deps: Update Rust crate tera to 1.19.1 +- deps: Update Rust crate syn to 2.0.60 +- deps: Update Rust crate serde_yaml to v0.9.34 +- deps: Update Rust crate schemars to v0.8.18 +- deps: Update Rust crate semver to v1.0.23 +- deps: Update Rust crate proc-macro2 to v1.0.82 +- deps: Update Rust crate serde to v1.0.201 +- deps: Update Rust crate serde_json to v1.0.117 +- deps: Update Rust crate syn to v2.0.62 +- deps: Update Rust crate syn to v2.0.63 +- deps: Update Rust crate serde to v1.0.202 +- deps: Update Rust crate schemars to v0.8.19 +- deps: Update peaceiris/actions-gh-pages action to v4 +- deps: Update Rust crate mdbook to v0.4.38 +- deps: Update Rust crate syn to v2.0.64 +- deps: Update Rust crate itertools to 0.13.0 +- deps: Update Rust crate mdbook to v0.4.40 +- deps: Update Rust crate proc-macro2 to v1.0.83 +- deps: Update Rust crate syn to v2.0.65 +- deps: Update Rust crate schemars to v0.8.20 +- deps: Update Rust crate schemars to v0.8.21 +- deps: Update Rust crate syn to v2.0.66 +- deps: Update Rust crate nix to 0.29 +- deps: Update Rust crate proc-macro2 to v1.0.84 +- deps: Update Rust crate serde to v1.0.203 +- deps: Update Rust crate ipc-channel to v0.18.1 +- deps: Update Rust crate proc-macro2 to v1.0.85 +- deps: Update Rust crate strum_macros to v0.26.3 +- deps: Update Rust crate clap to v4.5.6 +- deps: Update Rust crate strum_macros to v0.26.4 +- deps: Update Rust crate regex to v1.10.5 +- deps: Update Rust crate clap to v4.5.7 +- deps: Update Rust crate syn to v2.0.67 +- deps: Update Rust crate proc-macro2 to v1.0.86 +- deps: Update rust Docker tag to v1.79.0 +- deps: Update Rust crate tera to v1.20.0 + +### Fixed + +- ci: Automerge all patches +- Cargo clippy warnings + ## [v1.10.1](https://github.com/rash-sh/rash/tree/v1.10.1) - 2024-02-23 ### Added -* ci: Add renovate -* module: Add pacman -* module: Check pacman upgrades before execution +- ci: Add renovate +- module: Add pacman +- module: Check pacman upgrades before execution ### Build -* book: Update mdbook to 0.4.34 -* deps: Bump rustix from 0.37.23 to 0.37.25 -* deps: Bump unsafe-libyaml from 0.2.9 to 0.2.10 -* deps: Bump shlex from 1.2.0 to 1.3.0 -* deps: Update Rust crate mdbook to 0.4.37 -* deps: Update KSXGitHub/github-actions-deploy-aur action to v2.7.0 -* deps: Update Rust crate term_size to 1.0.0-beta1 -* deps: Update Rust crate itertools to 0.12 -* deps: Update Rust crate regex to 1.10 -* deps: Update Rust crate serde_with to 3.6 -* deps: Update Rust crate strum to 0.26 -* deps: Update Rust crate console to 0.15.8 -* deps: Update Rust crate term_size to 1.0.0-beta.2 -* deps: Update wagoid/commitlint-github-action action to v5 -* deps: Update docker/setup-qemu-action action to v3 -* deps: Update docker/setup-buildx-action action to v3 -* deps: Update actions/checkout action to v4 -* deps: Update rust Docker tag to v1.76.0 -* deps: Update mindsers/changelog-reader-action action to v2.2.2 -* deps: Update Rust crate env_logger to 0.11 -* deps: Update Rust crate ipc-channel to 0.18 -* deps: Update Rust crate similar to 2.4 -* deps: Update Rust crate strum_macros to 0.26 -* deps: Update Rust crate clap to 4.5 -* deps: Update Rust crate byte-unit to v5 -* deps: Update lock file -* docker: Update debian to latest bookworm version -* Compress binary with upx -* Fix macOS and push images -* Increase min rust version to 1.74 +- book: Update mdbook to 0.4.34 +- deps: Bump rustix from 0.37.23 to 0.37.25 +- deps: Bump unsafe-libyaml from 0.2.9 to 0.2.10 +- deps: Bump shlex from 1.2.0 to 1.3.0 +- deps: Update Rust crate mdbook to 0.4.37 +- deps: Update KSXGitHub/github-actions-deploy-aur action to v2.7.0 +- deps: Update Rust crate term_size to 1.0.0-beta1 +- deps: Update Rust crate itertools to 0.12 +- deps: Update Rust crate regex to 1.10 +- deps: Update Rust crate serde_with to 3.6 +- deps: Update Rust crate strum to 0.26 +- deps: Update Rust crate console to 0.15.8 +- deps: Update Rust crate term_size to 1.0.0-beta.2 +- deps: Update wagoid/commitlint-github-action action to v5 +- deps: Update docker/setup-qemu-action action to v3 +- deps: Update docker/setup-buildx-action action to v3 +- deps: Update actions/checkout action to v4 +- deps: Update rust Docker tag to v1.76.0 +- deps: Update mindsers/changelog-reader-action action to v2.2.2 +- deps: Update Rust crate env_logger to 0.11 +- deps: Update Rust crate ipc-channel to 0.18 +- deps: Update Rust crate similar to 2.4 +- deps: Update Rust crate strum_macros to 0.26 +- deps: Update Rust crate clap to 4.5 +- deps: Update Rust crate byte-unit to v5 +- deps: Update lock file +- docker: Update debian to latest bookworm version +- Compress binary with upx +- Fix macOS and push images +- Increase min rust version to 1.74 ### Documentation -* ci: Remove patch versions from web page -* core: Add comment about tera bug -* module: Include pacman examples and remove new lines in params -* vars: Add debug command to show all vars in current context +- ci: Remove patch versions from web page +- core: Add comment about tera bug +- module: Include pacman examples and remove new lines in params +- vars: Add debug command to show all vars in current context ### Fixed -* ci: Fix strip ref prefix from version in github pages action -* core: Log errors instead of trace -* core: Enable vars in when param -* core: Add log trace for extend vars -* core: Allow module log for empty output -* core: Log with colors just if terminal -* docker: Update to rust 1.72.0 -* docker: Update to rust 1.75.0 +- ci: Fix strip ref prefix from version in github pages action +- core: Log errors instead of trace +- core: Enable vars in when param +- core: Add log trace for extend vars +- core: Allow module log for empty output +- core: Log with colors just if terminal +- docker: Update to rust 1.72.0 +- docker: Update to rust 1.75.0 ### Refactor -* core: Replace match with and_then for readibility -* module: Add run_test function for pacman integration tests -* Replace to_string to to_owner when possible -* Remove match in favor of map if possible -* Remove some match statements +- core: Replace match with and_then for readibility +- module: Add run_test function for pacman integration tests +- Replace to_string to to_owner when possible +- Remove match in favor of map if possible +- Remove some match statements ### Testing -* Add docopt benches +- Add docopt benches ## [v1.10.0](https://github.com/rash-sh/rash/tree/v1.10.0) - 2023-09-12 ### Added -* core: Add output option to print log raw mode +- core: Add output option to print log raw mode ### Fixed -* ci: Run jobs just in PR or master branch -* deps: Remove users crate dependency +- ci: Run jobs just in PR or master branch +- deps: Remove users crate dependency ## [v1.9.0](https://github.com/rash-sh/rash/tree/v1.9.0) - 2023-09-07 ### Added -* task: Add `vars` optional field +- task: Add `vars` optional field ### Build -* Upgrade to Rust 1.70 and fix new clippy warnings -* Update compatible versions -* Upgrade incompatible versions -* Add memfd feature to ipc-channel -* Disable memfd for ipc-channel -* Set resolver = "2" +- Upgrade to Rust 1.70 and fix new clippy warnings +- Update compatible versions +- Upgrade incompatible versions +- Add memfd feature to ipc-channel +- Disable memfd for ipc-channel +- Set resolver = "2" ### Documentation -* Add dotfile description -* Fix readme typo +- Add dotfile description +- Fix readme typo ### Fixed -* ci: Update workers to latest versions -* ci: Upgrade cache action version to v2 -* ci: Update to node16 github actions -* ci: Replace `actions-rs/toolchain` with `dtolnay/rust-toolchain` -* ci: Change dtolnay/rust-toolchaint to stable -* ci: Remove container and downgrade to ubuntu 20 -* core: Improve docopt performance prefiltering possible options -* core: Handle docopt edge cases with optiona arguments -* task: Improve error message when become fails -* Cargo clippy errors +- ci: Update workers to latest versions +- ci: Upgrade cache action version to v2 +- ci: Update to node16 github actions +- ci: Replace `actions-rs/toolchain` with `dtolnay/rust-toolchain` +- ci: Change dtolnay/rust-toolchaint to stable +- ci: Remove container and downgrade to ubuntu 20 +- core: Improve docopt performance prefiltering possible options +- core: Handle docopt edge cases with optiona arguments +- task: Improve error message when become fails +- Cargo clippy errors ### Removed -* Command module: `transfer_pid_1` (use `transfer_pid` instead) +- Command module: `transfer_pid_1` (use `transfer_pid` instead) ## [v1.8.6](https://github.com/rash-sh/rash/tree/v1.8.6) - 2023-01-27 ### Added -* module: Support `chdir` in command module +- module: Support `chdir` in command module ### Build -* book: Update mdbook to 0.4.25 -* deps: Bump prettytable-rs from 0.8.0 to 0.10.0 -* Upgrade to Rust 1.67 and fix new clippy warnings +- book: Update mdbook to 0.4.25 +- deps: Bump prettytable-rs from 0.8.0 to 0.10.0 +- Upgrade to Rust 1.67 and fix new clippy warnings ### Fixed -* ci: Remove build scope from commitlintrc -* core: Set up to current dir parent path when empty -* module: Add trace for command exec +- ci: Remove build scope from commitlintrc +- core: Set up to current dir parent path when empty +- module: Add trace for command exec ## [v1.8.5](https://github.com/rash-sh/rash/tree/v1.8.5) - 2022-12-20 ### Added -* Add `git-cliff` to update CHANGELOG automatically +- Add `git-cliff` to update CHANGELOG automatically ### Build -* Upgrade to Rust 1.66 and fix new clippy warnings -* Add arm64 docker images +- Upgrade to Rust 1.66 and fix new clippy warnings +- Add arm64 docker images ### Documentation -* Fix build status badget +- Fix build status badget ### Fixed -* ci: Add local versions in dependencies -* cli: Change skipping log to debug +- ci: Add local versions in dependencies +- cli: Change skipping log to debug ### Refactor -* module: Implement trait Module +- module: Implement trait Module ## [v1.8.4](https://github.com/rash-sh/rash/tree/v1.8.4) (2022-10-24) ### Fixed -* ci: Read version from `Cargo.toml` +- ci: Read version from `Cargo.toml` ## [v1.8.3](https://github.com/rash-sh/rash/tree/v1.8.3) (2022-10-24) [YANKED] ### Fixed -* cli: Support repeated arguments in docopt (#281) -* cli: Help not ignored when positional required in docopt (#283) -* cli: Improve tera error handling and add a trace all verbose option (#287) -* docs: Add default values and fix examples (#285) +- cli: Support repeated arguments in docopt (#281) +- cli: Help not ignored when positional required in docopt (#283) +- cli: Improve tera error handling and add a trace all verbose option (#287) +- docs: Add default values and fix examples (#285) ## [v1.8.2](https://github.com/rash-sh/rash/tree/v1.8.2) (2022-08-15) ### Fixed -* Fix multi-word variable repr for options when true in docopt (#274) +- Fix multi-word variable repr for options when true in docopt (#274) ## [v1.8.1](https://github.com/rash-sh/rash/tree/v1.8.1) (2022-08-15) ### Fixed -* Fix multi-word variable repr for options in docopt (#273) +- Fix multi-word variable repr for options in docopt (#273) ## [v1.8.0](https://github.com/rash-sh/rash/tree/v1.8.0) (2022-06-30) ### Added -* Support all data structures in loops (#263) +- Support all data structures in loops (#263) ## [v1.7.1](https://github.com/rash-sh/rash/tree/v1.7.1) (2022-06-13) ### Fixed -* Update Debian image to bullseye and Rust to 1.61.0 -* Bumps [regex](https://github.com/rust-lang/regex) from 1.5.4 to 1.5.5. - * [Release notes](https://github.com/rust-lang/regex/releases) - * [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - * [Commits](https://github.com/rust-lang/regex/compare/1.5.4...1.5.5) -* Update ipc-channel to 0.16 and run `cargo update` +- Update Debian image to bullseye and Rust to 1.61.0 +- Bumps [regex](https://github.com/rust-lang/regex) from 1.5.4 to 1.5.5. + - [Release notes](https://github.com/rust-lang/regex/releases) + - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) + - [Commits](https://github.com/rust-lang/regex/compare/1.5.4...1.5.5) +- Update ipc-channel to 0.16 and run `cargo update` ## [v1.7.0](https://github.com/rash-sh/rash/tree/v1.7.0) (2022-01-26) ### Added -* Rename `transfer_pid_1` to `transfer_pid` in command module -* Add module debug (#241) +- Rename `transfer_pid_1` to `transfer_pid` in command module +- Add module debug (#241) ## [v1.6.1](https://github.com/rash-sh/rash/tree/v1.6.1) (2022-01-22) ### Fixed -* Options variables are now accessible (#236) -* Update to Rust 1.58.1 +- Options variables are now accessible (#236) +- Update to Rust 1.58.1 ## [v1.6.0](https://github.com/rash-sh/rash/tree/v1.6.0) (2022-01-20) ### Added -* Add parse options to docopt implementation (#232) -* Use `cross` for musl docker image (#232) +- Add parse options to docopt implementation (#232) +- Use `cross` for musl docker image (#232) ## [v1.5.0](https://github.com/rash-sh/rash/tree/v1.5.0) (2022-01-09) ### Added -* Add become (#220) -* Add `omit()` for omitting parameters programmatically (#70) -* Add preserve mode to copy module (#214) -* Add docopt to `rash` files (#212) +- Add become (#220) +- Add `omit()` for omitting parameters programmatically (#70) +- Add preserve mode to copy module (#214) +- Add docopt to `rash` files (#212) ### Fixed -* Format mode in diff as octal in File module +- Format mode in diff as octal in File module ## [v1.4.1](https://github.com/rash-sh/rash/tree/v1.4.1) (2021-12-24) ### Fixed -* Fix log with print in normal diff +- Fix log with print in normal diff ## [v1.4.0](https://github.com/rash-sh/rash/tree/v1.4.0) (2021-12-22) ### Added -* Add find module +- Add find module ### Fixed -* Fix `rash.dir` as absolute according with docs -* Fix publish packages to crates.io +- Fix `rash.dir` as absolute according with docs +- Fix publish packages to crates.io ## [v1.3.1](https://github.com/rash-sh/rash/tree/v1.3.1) (2021-12-19) ### Added -* Automatically added body to GitHub release +- Automatically added body to GitHub release ### Fixed -* Update rash package versions in Cargo.lock (missing in 1.3.0) +- Update rash package versions in Cargo.lock (missing in 1.3.0) ## [v1.3.0](https://github.com/rash-sh/rash/tree/v1.3.0) (2021-12-19) ### Added -* Add `changed_when` optional field in task -* Add support for arrays in `when` and `changed_when` -* Add clearer logger for diff files -* Add src option to copy module -* Add `check` mode +- Add `changed_when` optional field in task +- Add support for arrays in `when` and `changed_when` +- Add clearer logger for diff files +- Add src option to copy module +- Add `check` mode ### Fixed -* Parsed `when` and `changed_when` when they are booleans -* Builtin dir when current dir returns `.` -* Check `when` for each different item in loop -* Remove vendor on release +- Parsed `when` and `changed_when` when they are booleans +- Builtin dir when current dir returns `.` +- Check `when` for each different item in loop +- Remove vendor on release ## [v1.2.0](https://github.com/rash-sh/rash/tree/v1.2.0) (2021-12-17) ### Added -* Add diff param and apply in file, copy and template modules (#190) -* Get params doc from struct (#189) +- Add diff param and apply in file, copy and template modules (#190) +- Get params doc from struct (#189) ### Fixed -* Add warn and error to stderr instead of stdout -* Remove `--all-features` from release +- Add warn and error to stderr instead of stdout +- Remove `--all-features` from release ## [v1.1.0](https://github.com/rash-sh/rash/tree/v1.1.0) (2021-12-12) ### Added -* Add file module (#180) +- Add file module (#180) ## [v1.0.2](https://github.com/rash-sh/rash/tree/v1.0.2) (2021-12-07) ### Added -* Add AUR packages automatic build and publish -* Release with signed tags -* Add releases binaries with Linux Glib >= 2.17 support and macOS +- Add AUR packages automatic build and publish +- Release with signed tags +- Add releases binaries with Linux Glib >= 2.17 support and macOS ## [v1.0.1](https://github.com/rash-sh/rash/tree/v1.0.1) (2021-12-03) ### Bug fixes -* Remove duplicate error messages +- Remove duplicate error messages ## [v1.0.0](https://github.com/rash-sh/rash/tree/v1.0.0) (2020-06-11) @@ -326,39 +413,39 @@ First stable version released: ### modules -* assert -* command -* copy -* template -* set_vars +- assert +- command +- copy +- template +- set_vars ### tasks -* when -* register -* ignore_errors -* loop +- when +- register +- ignore_errors +- loop ### vars -* rash - * args - * dir - * path - * user.uid - * user.gid -* env +- rash + - args + - dir + - path + - user.uid + - user.gid +- env ## v0.1.0 Core version released: -* data structure -* error management -* log -* execution -* cli +- data structure +- error management +- log +- execution +- cli ### modules -* add command (basic functionality) +- add command (basic functionality) diff --git a/Cargo.lock b/Cargo.lock index 74396d03..17ea96b5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1047,7 +1047,7 @@ dependencies = [ [[package]] name = "mdbook_rash" -version = "1.10.1" +version = "1.10.2" dependencies = [ "chrono", "clap", @@ -1373,7 +1373,7 @@ dependencies = [ [[package]] name = "rash_core" -version = "1.10.1" +version = "1.10.2" dependencies = [ "byte-unit", "cargo-husky", @@ -1407,7 +1407,7 @@ dependencies = [ [[package]] name = "rash_derive" -version = "1.10.1" +version = "1.10.2" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 5b24f3a8..717b837f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ resolver = "2" [workspace.package] -version = "1.10.1" +version = "1.10.2" authors = ["Pando85 "] rust-version = "1.74" edition = "2021" diff --git a/cliff.toml b/cliff.toml index e653aee1..c0838157 100644 --- a/cliff.toml +++ b/cliff.toml @@ -22,7 +22,7 @@ body = """ {% for commit in commits | filter(attribute="scope") | sort(attribute="scope") %} - * {{commit.scope}}: {{ commit.message | upper_first }} + - {{commit.scope}}: {{ commit.message | upper_first }} {%- if commit.breaking %} {% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}} {%- endif -%} @@ -30,7 +30,7 @@ body = """ {% for commit in commits %} {%- if commit.scope %} {%- else %} - * {{ commit.message | upper_first }} + - {{ commit.message | upper_first }} {%- if commit.breaking %} {% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}} {%- endif -%} diff --git a/mdbook_rash/Cargo.toml b/mdbook_rash/Cargo.toml index 9c53aa9a..351d018e 100644 --- a/mdbook_rash/Cargo.toml +++ b/mdbook_rash/Cargo.toml @@ -15,7 +15,7 @@ path = "src/bin/mdbook-rash.rs" doc = false [dependencies] -rash_core = { path = "../rash_core", features = ["docs"], version = "1.10.1" } +rash_core = { path = "../rash_core", features = ["docs"], version = "1.10.2" } lazy_static.workspace = true log.workspace = true regex.workspace = true diff --git a/rash_core/Cargo.toml b/rash_core/Cargo.toml index 64aeb484..f5c81907 100644 --- a/rash_core/Cargo.toml +++ b/rash_core/Cargo.toml @@ -21,7 +21,7 @@ path = "src/bin/rash.rs" docs = ["rash_derive/docs", "schemars"] [dependencies] -rash_derive = { path = "../rash_derive", version = "1.10.1" } +rash_derive = { path = "../rash_derive", version = "1.10.2" } lazy_static.workspace = true log.workspace = true regex.workspace = true