diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e78ced4c..ce3e095ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,33 @@ # Changelog +## [2024.9.4](https://github.com/jdx/mise/compare/v2024.9.3..v2024.9.4) - 2024-09-15 + +### πŸš€ Features + +- support for global configuration profiles by [@roele](https://github.com/roele) in [#2575](https://github.com/jdx/mise/pull/2575) +- add Atmos by [@mtweeman](https://github.com/mtweeman) in [#2577](https://github.com/jdx/mise/pull/2577) +- add semver matching in mise templates by [@erickguan](https://github.com/erickguan) in [#2578](https://github.com/jdx/mise/pull/2578) +- add rest of tera features for templates by [@erickguan](https://github.com/erickguan) in [#2582](https://github.com/jdx/mise/pull/2582) + +### πŸ› Bug Fixes + +- fix a few tera filter error messages by [@erickguan](https://github.com/erickguan) in [#2574](https://github.com/jdx/mise/pull/2574) +- use "windows" instead of "win" by [@jdx](https://github.com/jdx) in [3327e8c](https://github.com/jdx/mise/commit/3327e8c5eca4dc39529790c4b830fdcca57ebe65) +- fixed release-plz by [@jdx](https://github.com/jdx) in [bc4fae3](https://github.com/jdx/mise/commit/bc4fae3f1acefdf0fb05f8b97a0ec1703a216f57) +- cannot install truffelruby by [@roele](https://github.com/roele) in [#2581](https://github.com/jdx/mise/pull/2581) + +### πŸ“š Documentation + +- wrong version in the README example when install specific version by [@roele](https://github.com/roele) in [#2579](https://github.com/jdx/mise/pull/2579) + +### πŸ” Other Changes + +- fix nightly lint warning by [@jdx](https://github.com/jdx) in [0a41dc6](https://github.com/jdx/mise/commit/0a41dc67aa7b1faf6301a67386eabb3ebd31ed4d) + +### New Contributors + +* @mtweeman made their first contribution in [#2577](https://github.com/jdx/mise/pull/2577) + ## [2024.9.3](https://github.com/jdx/mise/compare/v2024.9.2..v2024.9.3) - 2024-09-12 ### πŸ› Bug Fixes diff --git a/Cargo.lock b/Cargo.lock index 6b91a3d4b..250184005 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -330,9 +330,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.18" +version = "1.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b62ac837cdb5cb22e10a256099b4fc502b1dfe560cb282963a974d7abd80e476" +checksum = "2d74707dde2ba56f86ae90effb3b43ddd369504387e718014de010cec7959800" dependencies = [ "jobserver", "libc", @@ -1933,7 +1933,7 @@ dependencies = [ [[package]] name = "mise" -version = "2024.9.3" +version = "2024.9.4" dependencies = [ "assert_cmd", "base64", @@ -2190,9 +2190,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.19.0" +version = "1.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" +checksum = "33ea5043e58958ee56f3e15a90aee535795cd7dfd319846288d93c5b57d85cbe" [[package]] name = "openssl" @@ -2606,9 +2606,9 @@ dependencies = [ [[package]] name = "pretty_assertions" -version = "1.4.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af7cee1a6c8a5b9208b3cb1061f10c0cb689087b3d8ce85fb9d2dd7a29b6ba66" +checksum = "3ae130e2f271fbc2ac3a40fb1d07180839cdbbe443c7a27e1e3c13c5cac0116d" dependencies = [ "diff", "yansi", @@ -4048,9 +4048,9 @@ dependencies = [ [[package]] name = "unicode-segmentation" -version = "1.11.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" [[package]] name = "unicode-width" @@ -4655,9 +4655,9 @@ dependencies = [ [[package]] name = "yansi" -version = "0.5.1" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" +checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" [[package]] name = "zerocopy" diff --git a/Cargo.toml b/Cargo.toml index 765326f0e..78be01d50 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mise" -version = "2024.9.3" +version = "2024.9.4" edition = "2021" description = "The front-end to your dev env" authors = ["Jeff Dickey (@jdx)"] diff --git a/README.md b/README.md index 196c537a1..e7c3fa41e 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Install mise (other methods [here](https://mise.jdx.dev/getting-started.html)): ```sh-session $ curl https://mise.run | sh $ ~/.local/bin/mise --version -2024.9.3 macos-arm64 (a1b2d3e 2024-09-12) +2024.9.4 macos-arm64 (a1b2d3e 2024-09-15) ``` or install a specific a version: diff --git a/default.nix b/default.nix index fdaafced1..8b06a3c77 100644 --- a/default.nix +++ b/default.nix @@ -2,7 +2,7 @@ rustPlatform.buildRustPackage { pname = "mise"; - version = "2024.9.3"; + version = "2024.9.4"; src = lib.cleanSource ./.; diff --git a/man/man1/mise.1 b/man/man1/mise.1 index 164378899..830023547 100644 --- a/man/man1/mise.1 +++ b/man/man1/mise.1 @@ -1,6 +1,6 @@ .ie \n(.g .ds Aq \(aq .el .ds Aq ' -.TH mise 1 "mise 2024.9.3" +.TH mise 1 "mise 2024.9.4" .SH NAME mise \- The front\-end to your dev env .SH SYNOPSIS @@ -195,6 +195,6 @@ Examples: $ mise settings Show settings in use $ mise settings set color 0 Disable color by modifying global config file .SH VERSION -v2024.9.3 +v2024.9.4 .SH AUTHORS Jeff Dickey <@jdx> diff --git a/packaging/rpm/mise.spec b/packaging/rpm/mise.spec index cad41617d..310623b3d 100644 --- a/packaging/rpm/mise.spec +++ b/packaging/rpm/mise.spec @@ -1,6 +1,6 @@ Summary: The front-end to your dev env Name: mise -Version: 2024.9.3 +Version: 2024.9.4 Release: 1 URL: https://github.com/jdx/mise/ Group: System diff --git a/registry/README.md b/registry/README.md index eb4506591..b30687686 100644 --- a/registry/README.md +++ b/registry/README.md @@ -48,7 +48,6 @@ See the [org'sΒ readme](https://github.com/mise-plugins) for more information. | asdf-plugin-manager | [asdf-community/asdf-plugin-manager](https://github.com/asdf-community/asdf-plugin-manager) | | assh | [zekker6/asdf-assh](https://github.com/zekker6/asdf-assh) | | atlas | [komi1230/asdf-atlas](https://github.com/komi1230/asdf-atlas) | -| Atmos | [cloudposse/asdf-atmos](https://github.com/cloudposse/asdf-atmos) | | auto-doc | [looztra/asdf-auto-doc](https://github.com/looztra/asdf-auto-doc) | | aws-copilot | [NeoHsu/asdf-copilot](https://github.com/NeoHsu/asdf-copilot) | | aws-amplify-cli | [LozanoMatheus/asdf-aws-amplify-cli](https://github.com/LozanoMatheus/asdf-aws-amplify-cli) | diff --git a/registry/plugins/atmos b/registry/plugins/atmos deleted file mode 100644 index d896d5679..000000000 --- a/registry/plugins/atmos +++ /dev/null @@ -1 +0,0 @@ -repository = https://github.com/cloudposse/asdf-atmos.git diff --git a/src/env.rs b/src/env.rs index da43a1a62..ba8bbd104 100644 --- a/src/env.rs +++ b/src/env.rs @@ -1,11 +1,10 @@ use std::collections::{HashMap, HashSet}; pub use std::env::*; -use std::path; use std::path::PathBuf; -use std::process; use std::string::ToString; use std::sync::RwLock; use std::time::Duration; +use std::{path, process}; use itertools::Itertools; use log::LevelFilter; diff --git a/src/tera.rs b/src/tera.rs index aaf7df6f8..c81a384f6 100644 --- a/src/tera.rs +++ b/src/tera.rs @@ -6,7 +6,8 @@ use heck::{ ToUpperCamelCase, }; use once_cell::sync::Lazy; -use rand::{seq::SliceRandom, thread_rng}; +use rand::seq::SliceRandom; +use rand::thread_rng; use tera::{Context, Tera, Value}; use versions::{Requirement, Versioning}; @@ -536,7 +537,7 @@ mod tests { reset(); let s = render(r#"{{ "../fixtures/shorthands.toml" | last_modified }}"#); let timestamp = s.parse::().unwrap(); - assert!(timestamp >= 1725000000 && timestamp <= 2725000000); + assert!((1725000000..=2725000000).contains(×tamp)); } #[test]