Skip to content

Commit

Permalink
release: v1.9.0
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Gil <[email protected]>
  • Loading branch information
pando85 committed Sep 7, 2023
1 parent c715b1f commit 616ba0c
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 18 deletions.
35 changes: 33 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,40 @@ 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).

## [Unreleased]
## [v1.9.0](https://github.com/rash-sh/rash/tree/v1.9.0) - 2023-09-07

### To be removed in v1.9.0
### Added

* 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"

### Documentation

* 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

### Removed

* Command module: `transfer_pid_1` (use `transfer_pid` instead)

Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ resolver = "2"


[workspace.package]
version = "1.8.6"
version = "1.9.0"
authors = ["Pando85 <[email protected]>"]
rust-version = "1.70"
rust-version = "1.72"
edition = "2021"
license-file = "LICENSE"
homepage = "https://rash.sh"
Expand Down
2 changes: 1 addition & 1 deletion mdbook_rash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ path = "src/bin/mdbook-rash.rs"
doc = false

[dependencies]
rash_core = { path = "../rash_core", features = ["docs"], version = "1.8.6" }
rash_core = { path = "../rash_core", features = ["docs"], version = "1.9.0" }
lazy_static.workspace = true
log.workspace = true
regex.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion rash_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ path = "src/bin/rash.rs"
docs = ["rash_derive/docs", "schemars"]

[dependencies]
rash_derive = { path = "../rash_derive", version = "1.8.6" }
rash_derive = { path = "../rash_derive", version = "1.9.0" }
lazy_static.workspace = true
log.workspace = true
regex.workspace = true
Expand Down
10 changes: 1 addition & 9 deletions rash_core/src/modules/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ pub struct Params {
pub chdir: Option<String>,
#[serde(flatten)]
pub required: Required,
/// [DEPRECATED] Execute command as PID 1.
/// Note: from this point on, your rash script execution is transferred to the command
pub transfer_pid_1: Option<bool>,
/// Execute command as PID 1.
/// Note: from this point on, your rash script execution is transferred to the command
pub transfer_pid: Option<bool>,
Expand Down Expand Up @@ -118,17 +115,13 @@ impl Module for Command {
Some(s) => Params {
chdir: None,
required: Required::Cmd(s.to_string()),
transfer_pid_1: None,
transfer_pid: None,
},
None => parse_params(optional_params)?,
};

match params.transfer_pid {
Some(true) => {
warn!("transfer_pid_1 option will be removed in 1.9.0");
exec_transferring_pid(params)
}
Some(true) => exec_transferring_pid(params),
None | Some(false) => match params.transfer_pid {
Some(true) => exec_transferring_pid(params),
None | Some(false) => {
Expand Down Expand Up @@ -222,7 +215,6 @@ mod tests {
Params {
chdir: None,
required: Required::Cmd("ls".to_string()),
transfer_pid_1: None,
transfer_pid: Some(false),
}
);
Expand Down

0 comments on commit 616ba0c

Please sign in to comment.