From 9b3f005a1a9b5bfb36710aec3b287f35b111ae10 Mon Sep 17 00:00:00 2001 From: mise-en-dev Date: Wed, 27 Nov 2024 16:37:40 -0600 Subject: [PATCH] chore: release 2024.11.32 (#3237) * chore: release 2024.11.32 * chore: release 2024.11.32 * chore: release 2024.11.32 --- .github/workflows/test.yml | 6 +++--- CHANGELOG.md | 42 +++++++++++++++++++++++++++++++++++++ Cargo.lock | 14 ++++++------- Cargo.toml | 2 +- README.md | 2 +- aqua-registry | 2 +- completions/_mise | 6 +++--- completions/mise.bash | 6 +++--- completions/mise.fish | 6 +++--- default.nix | 2 +- docs/tasks/index.md | 8 ++----- docs/tasks/running-tasks.md | 6 ++++++ man/man1/mise.1 | 4 ++-- packaging/rpm/mise.spec | 2 +- registry.toml | 2 +- src/http.rs | 1 + 16 files changed, 78 insertions(+), 33 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index beb01d8de4..cd885390e6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -213,7 +213,7 @@ jobs: env: TEST_TRANCHE: ${{matrix.tranche}} TEST_TRANCHE_COUNT: 8 - TEST_ALL: ${{github.ref_name == 'release' && '1' || '0'}} + TEST_ALL: ${{github.head_ref == 'release' && '1' || '0'}} with: timeout_minutes: 30 retry_wait_seconds: 30 @@ -315,11 +315,11 @@ jobs: needs: [build-macos, build-windows] runs-on: ${{ matrix.os }} timeout-minutes: 20 - if: github.ref == 'refs/heads/release' + if: github.head_ref == 'release' env: TEST_TRANCHE: ${{matrix.tranche}} TEST_TRANCHE_COUNT: 4 - TEST_ALL: ${{github.ref_name == 'release' && '1' || '0'}} + TEST_ALL: ${{github.head_ref == 'release' && '1' || '0'}} MISE_DATA_DIR: ~/.local/share/mise MISE_CACHE_DIR: ~/.cache/mise MISE_DISABLE_TOOLS: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ee68ae987..9a11c8b032 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,47 @@ # Changelog +## [2024.11.32](https://github.com/jdx/mise/compare/v2024.11.31..v2024.11.32) - 2024-11-27 + +### 🚀 Features + +- allow running tasks without `mise run`, e.g.: `mise test` as shorthand for `mise run test` by [@jdx](https://github.com/jdx) in [#3235](https://github.com/jdx/mise/pull/3235) +- default task directory config by [@jdx](https://github.com/jdx) in [#3238](https://github.com/jdx/mise/pull/3238) +- standalone tasks by [@jdx](https://github.com/jdx) in [#3240](https://github.com/jdx/mise/pull/3240) +- automatic uv venv activation by [@jdx](https://github.com/jdx) in [#3239](https://github.com/jdx/mise/pull/3239) +- migrate more tools away from asdf by [@jdx](https://github.com/jdx) in [#3242](https://github.com/jdx/mise/pull/3242) +- add committed by [@scop](https://github.com/scop) in [#3247](https://github.com/jdx/mise/pull/3247) +- use ubi for figma-export by [@jdx](https://github.com/jdx) in [19dbeac](https://github.com/jdx/mise/commit/19dbeac16a68248bb780a2de1056d16409714204) +- add vacuum by [@scop](https://github.com/scop) in [#3249](https://github.com/jdx/mise/pull/3249) + +### 🐛 Bug Fixes + +- skip _.source files if not present by [@jdx](https://github.com/jdx) in [#3236](https://github.com/jdx/mise/pull/3236) +- rust idiomatic file parsing by [@jdx](https://github.com/jdx) in [#3241](https://github.com/jdx/mise/pull/3241) +- automatic reinstall of uvx tools during python upgrades by [@jdx](https://github.com/jdx) in [#3243](https://github.com/jdx/mise/pull/3243) + +### 🚜 Refactor + +- use aqua for shfmt by [@scop](https://github.com/scop) in [#3244](https://github.com/jdx/mise/pull/3244) +- use aqua for lefthook by [@scop](https://github.com/scop) in [#3246](https://github.com/jdx/mise/pull/3246) +- use aqua for nfpm by [@scop](https://github.com/scop) in [#3248](https://github.com/jdx/mise/pull/3248) + +### 📚 Documentation + +- correction in aqua by [@jdx](https://github.com/jdx) in [b7de2f3](https://github.com/jdx/mise/commit/b7de2f32e6a23458bbd3573372f9c49733b80e62) +- typo by [@jdx](https://github.com/jdx) in [98aa6bd](https://github.com/jdx/mise/commit/98aa6bd7b2631a5904243cbf9aeb2eaf218c9c64) + +### 🔍 Other Changes + +- bump tabled by [@jdx](https://github.com/jdx) in [#3245](https://github.com/jdx/mise/pull/3245) +- fix tools tests on release branch by [@jdx](https://github.com/jdx) in [675a2b0](https://github.com/jdx/mise/commit/675a2b086116f0afb431189c51136255b6f6c434) +- fix tools tests on release branch by [@jdx](https://github.com/jdx) in [130c3a4](https://github.com/jdx/mise/commit/130c3a4de60edfbed98642bc6dc71e67ba9b6ce1) +- Mention the fish shell's automatic activation in the Quickstart section by [@rmacklin](https://github.com/rmacklin) in [#2295](https://github.com/jdx/mise/pull/2295) +- fix tools tests on release branch by [@jdx](https://github.com/jdx) in [9feb3b6](https://github.com/jdx/mise/commit/9feb3b638ef634d320f576921b3e366f6cd73075) + +### New Contributors + +- @rmacklin made their first contribution in [#2295](https://github.com/jdx/mise/pull/2295) + ## [2024.11.31](https://github.com/jdx/mise/compare/v2024.11.30..v2024.11.31) - 2024-11-27 ### 🚀 Features diff --git a/Cargo.lock b/Cargo.lock index 7f60d6be3c..b36735b7f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -561,7 +561,7 @@ dependencies = [ "encode_unicode", "lazy_static", "libc", - "unicode-width 0.1.11", + "unicode-width 0.1.14", "windows-sys 0.52.0", ] @@ -2019,7 +2019,7 @@ dependencies = [ "miette-derive", "once_cell", "thiserror 1.0.69", - "unicode-width 0.1.11", + "unicode-width 0.1.14", ] [[package]] @@ -2077,7 +2077,7 @@ dependencies = [ [[package]] name = "mise" -version = "2024.11.31" +version = "2024.11.32" dependencies = [ "base64", "built", @@ -3926,9 +3926,9 @@ checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" -version = "0.1.40" +version = "0.1.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" dependencies = [ "pin-project-lite", "tracing-core", @@ -4097,9 +4097,9 @@ checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" [[package]] name = "unicode-width" -version = "0.1.11" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" +checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" [[package]] name = "unicode-width" diff --git a/Cargo.toml b/Cargo.toml index aa727b8bd1..6faf03fc1e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mise" -version = "2024.11.31" +version = "2024.11.32" edition = "2021" description = "The front-end to your dev env" authors = ["Jeff Dickey (@jdx)"] diff --git a/README.md b/README.md index 09d2ff3d71..5a4f726223 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.11.31 macos-arm64 (a1b2d3e 2024-11-27) +2024.11.32 macos-arm64 (a1b2d3e 2024-11-27) ``` or install a specific a version: diff --git a/aqua-registry b/aqua-registry index 1e39a24455..001efbfaee 160000 --- a/aqua-registry +++ b/aqua-registry @@ -1 +1 @@ -Subproject commit 1e39a24455abea5e46b937480f4ccb04c9ed20d5 +Subproject commit 001efbfaee1f93befbec74c9afa0d99460608638 diff --git a/completions/_mise b/completions/_mise index db94aab645..b78d0907d7 100644 --- a/completions/_mise +++ b/completions/_mise @@ -27,11 +27,11 @@ _mise() { zstyle ":completion:${curcontext}:" cache-policy _usage_mise_cache_policy fi - if ( [[ -z "${_usage_spec_mise_2024_11_31:-}" ]] || _cache_invalid _usage_spec_mise_2024_11_31 ) \ - && ! _retrieve_cache _usage_spec_mise_2024_11_31; + if ( [[ -z "${_usage_spec_mise_2024_11_32:-}" ]] || _cache_invalid _usage_spec_mise_2024_11_32 ) \ + && ! _retrieve_cache _usage_spec_mise_2024_11_32; then spec="$(mise usage)" - _store_cache _usage_spec_mise_2024_11_31 spec + _store_cache _usage_spec_mise_2024_11_32 spec fi _arguments "*: :(($(usage complete-word --shell zsh -s "$spec" -- "${words[@]}" )))" diff --git a/completions/mise.bash b/completions/mise.bash index f2edcdb64e..63f18c6c75 100644 --- a/completions/mise.bash +++ b/completions/mise.bash @@ -6,12 +6,12 @@ _mise() { return 1 fi - if [[ -z ${_usage_spec_mise_2024_11_31:-} ]]; then - _usage_spec_mise_2024_11_31="$(mise usage)" + if [[ -z ${_usage_spec_mise_2024_11_32:-} ]]; then + _usage_spec_mise_2024_11_32="$(mise usage)" fi # shellcheck disable=SC2207 - COMPREPLY=( $(usage complete-word --shell bash -s "${_usage_spec_mise_2024_11_31}" --cword="$COMP_CWORD" -- "${COMP_WORDS[@]}" ) ) + COMPREPLY=( $(usage complete-word --shell bash -s "${_usage_spec_mise_2024_11_32}" --cword="$COMP_CWORD" -- "${COMP_WORDS[@]}" ) ) if [[ $? -ne 0 ]]; then unset COMPREPLY fi diff --git a/completions/mise.fish b/completions/mise.fish index 9a4365daa0..59519088d3 100644 --- a/completions/mise.fish +++ b/completions/mise.fish @@ -6,7 +6,7 @@ if ! command -v usage &> /dev/null return 1 end -if ! set -q _usage_spec_mise_2024_11_31 - set -g _usage_spec_mise_2024_11_31 (mise usage | string collect) +if ! set -q _usage_spec_mise_2024_11_32 + set -g _usage_spec_mise_2024_11_32 (mise usage | string collect) end -complete -xc mise -a '(usage complete-word --shell fish -s "$_usage_spec_mise_2024_11_31" -- (commandline -cop) (commandline -t))' +complete -xc mise -a '(usage complete-word --shell fish -s "$_usage_spec_mise_2024_11_32" -- (commandline -cop) (commandline -t))' diff --git a/default.nix b/default.nix index af9033c2b0..a222039693 100644 --- a/default.nix +++ b/default.nix @@ -2,7 +2,7 @@ rustPlatform.buildRustPackage { pname = "mise"; - version = "2024.11.31"; + version = "2024.11.32"; src = lib.cleanSource ./.; diff --git a/docs/tasks/index.md b/docs/tasks/index.md index c5038adfc1..e0a5705448 100644 --- a/docs/tasks/index.md +++ b/docs/tasks/index.md @@ -14,6 +14,8 @@ Here's my favorite features about mise's task runner: - ability to write tasks as actual bash script files and not inside yml/json/toml strings that lack syntax highlighting and linting/checking support +There are 2 ways to define tasks: [inside of `mise.toml` files](./toml-tasks.html) or as [standalone shell scripts](./file-tasks.html). + ## Task Environment Variables - `root` - the root of the project, defaults to the directory of the `mise.toml` file @@ -46,12 +48,6 @@ task3 = "echo task3" run = "echo task4" ``` -## Running tasks - -Tasks can be run with `mise run ` or `mise `—if the name doesn't conflict with a mise command. -Because mise may later add a command with a conflicting name, it's recommended to use `mise run ` in -scripts and documentation. - ## Vars Vars are variables that can be shared between tasks like environment variables but they are not diff --git a/docs/tasks/running-tasks.md b/docs/tasks/running-tasks.md index be6d345ec9..fed590b5ea 100644 --- a/docs/tasks/running-tasks.md +++ b/docs/tasks/running-tasks.md @@ -122,3 +122,9 @@ mise watch -t build -- --print-events --verbose See watchexec's help with `watchexec --help` or `mise watch -- --help` to see all of the options. + +## `mise run` shorthand + +Tasks can be run with `mise run ` or `mise `—if the name doesn't conflict with a mise command. +Because mise may later add a command with a conflicting name, it's recommended to use `mise run ` in +scripts and documentation. diff --git a/man/man1/mise.1 b/man/man1/mise.1 index 6e4622e2b0..4bf9214585 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.11.31" +.TH mise 1 "mise 2024.11.32" .SH NAME mise \- The front\-end to your dev env .SH SYNOPSIS @@ -207,6 +207,6 @@ Examples: $ mise settings Show settings in use $ mise settings color=0 Disable color by modifying global config file .SH VERSION -v2024.11.31 +v2024.11.32 .SH AUTHORS Jeff Dickey <@jdx> diff --git a/packaging/rpm/mise.spec b/packaging/rpm/mise.spec index aad09c19c9..908b07cf33 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.11.31 +Version: 2024.11.32 Release: 1 URL: https://github.com/jdx/mise/ Group: System diff --git a/registry.toml b/registry.toml index 3ceae4d528..3dd3d00351 100644 --- a/registry.toml +++ b/registry.toml @@ -325,7 +325,7 @@ eza.backends = ["asdf:lwiechec/asdf-eza"] fd.backends = ["ubi:sharkdp/fd", "asdf:https://gitlab.com/wt0f/asdf-fd"] ffmpeg.backends = ["asdf:acj/asdf-ffmpeg"] figma-export.backends = ["ubi:RedMadRobot/figma-export", "asdf:younke/asdf-figma-export"] -figma-export.test = ["figma-export --version", "{{version}}"] +# figma-export.test = ["figma-export --version", "{{version}}"] flaky fillin.backends = ["aqua:itchyny/fillin", "asdf:ouest/asdf-fillin"] firebase.backends = ["asdf:jthegedus/asdf-firebase"] fission.backends = ["aqua:fission/fission", "asdf:virtualstaticvoid/asdf-fission"] diff --git a/src/http.rs b/src/http.rs index 73f4f091a0..9971f3e202 100644 --- a/src/http.rs +++ b/src/http.rs @@ -194,6 +194,7 @@ fn with_github_auth(url: &Url, mut req: RequestBuilder) -> RequestBuilder { if url.host_str() == Some("api.github.com") { if let Some(token) = &*env::GITHUB_TOKEN { req = req.header("authorization", format!("token {}", token)); + req = req.header("x-github-api-version", "2022-11-28"); } } req