Commit Graph

3872 Commits

Author SHA1 Message Date
Sina Hinderks e282daa72e
docs: mark code block for dnf5 install as shell code (#4747)
This fixes a simple omission when documenting the new dnf5 syntax for
adding the mise repository to Fedora.
2025-03-29 12:32:52 +00:00
Ville Skyttä 0ad657dae3
refactor(registry): use aqua for ksops (#4746) 2025-03-29 06:39:30 -05:00
Ville Skyttä 6b4402c0a6
refactor(registry): use aqua for ubi (#4745) 2025-03-29 06:39:13 -05:00
mise-en-dev e35528f9ed
chore: release 2025.3.11 (#4728)
### 🚀 Features

- **(registry)** add protoc-gen-validate by
[@akanter](https://github.com/akanter) in
[#4703](https://github.com/jdx/mise/pull/4703)

### 🚜 Refactor

- **(registry)** use aqua for swiftlint by
[@scop](https://github.com/scop) in
[#4726](https://github.com/jdx/mise/pull/4726)
- **(registry)** use ubi for opensearch-cli by
[@scop](https://github.com/scop) in
[#4725](https://github.com/jdx/mise/pull/4725)
- **(registry)** use ubi for mdbook-linkcheck by
[@scop](https://github.com/scop) in
[#4724](https://github.com/jdx/mise/pull/4724)
- **(registry)** use ubi for velad by [@scop](https://github.com/scop)
in [#4727](https://github.com/jdx/mise/pull/4727)
2025-03-28 15:29:02 -05:00
Ville Skyttä 26fe9121ec
refactor(registry): use ubi for velad (#4727)
Co-authored-by: jdx <216188+jdx@users.noreply.github.com>
2025-03-28 19:30:16 +00:00
Aaron Kanter 16178e8ab8
feat(registry): add protoc-gen-validate (#4703)
Adds [protoc-gen-validate
tool](https://github.com/bufbuild/protoc-gen-validate). As it is a
protoc plugin, there's not a great way to test it off the bat.

```
mise use go:github.com/bufbuild/protoc-gen-validate 
go: downloading github.com/bufbuild/protoc-gen-validate v1.2.1
go: downloading github.com/iancoleman/strcase v0.3.0
go: downloading google.golang.org/protobuf v1.36.3
go: downloading github.com/lyft/protoc-gen-star/v2 v2.0.4-0.20230330145011-496ad1ac90a4
go: downloading github.com/spf13/afero v1.10.0
go: downloading golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d
go: downloading golang.org/x/mod v0.17.0
mise go:github.com/bufbuild/protoc-gen-validate@1.2.1 ✓ installed
mise ~/test/.mise.toml tools: go:github.com/bufbuild/protoc-gen-validate@1.2.1
```

```
mise use aqua:bufbuild/protoc-gen-validate
mise aqua:bufbuild/protoc-gen-validate@1.2.1 ✓ installed
mise ~/test/.mise.toml tools: aqua:bufbuild/protoc-gen-validate@1.2.1
```
2025-03-28 08:33:38 -05:00
Ville Skyttä 90426dd949
refactor(registry): use ubi for mdbook-linkcheck (#4724)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: jdx <216188+jdx@users.noreply.github.com>
2025-03-27 14:29:56 +00:00
Ville Skyttä 1a4b68427e
refactor(registry): use ubi for opensearch-cli (#4725)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: jdx <216188+jdx@users.noreply.github.com>
2025-03-27 14:27:47 +00:00
Ville Skyttä 2be12e2677
refactor(registry): use aqua for swiftlint (#4726) 2025-03-27 09:07:45 -05:00
mise-en-dev 252e4b4ce0
chore: release 2025.3.10 (#4723) 2025-03-26 17:32:18 -04:00
jdx 83e8c164ec
Revert "chore: make awscli compatible with R2"
This reverts commit cad7fa285e.
2025-03-26 17:00:37 -04:00
mise-en-dev 2f3ae876c9
chore: release 2025.3.9 (#4702)
### 🚀 Features

- Set usage arguments and flag as environment variables before running
the command by [@gturi](https://github.com/gturi) in
[#4700](https://github.com/jdx/mise/pull/4700)

### 🚜 Refactor

- **(registry)** use ubi for assh by [@scop](https://github.com/scop) in
[#4713](https://github.com/jdx/mise/pull/4713)
- **(registry)** use ubi for opsgenie-lamp by
[@scop](https://github.com/scop) in
[#4712](https://github.com/jdx/mise/pull/4712)
- **(registry)** use ubi for auto-doc by
[@scop](https://github.com/scop) in
[#4714](https://github.com/jdx/mise/pull/4714)
- **(registry)** use ubi for getenvoy by
[@scop](https://github.com/scop) in
[#4715](https://github.com/jdx/mise/pull/4715)
- **(registry)** use ubi for mockolo by [@scop](https://github.com/scop)
in [#4705](https://github.com/jdx/mise/pull/4705)
- **(registry)** use ubi for haxe by [@scop](https://github.com/scop) in
[#4716](https://github.com/jdx/mise/pull/4716)
- **(registry)** use ubi for helm-diff by
[@scop](https://github.com/scop) in
[#4717](https://github.com/jdx/mise/pull/4717)
- **(registry)** use ubi for grain by [@scop](https://github.com/scop)
in [#4718](https://github.com/jdx/mise/pull/4718)
2025-03-26 08:47:19 -04:00
Ville Skyttä 00ce3207d3
refactor(registry): use ubi for grain (#4718)
Co-authored-by: jdx <216188+jdx@users.noreply.github.com>
2025-03-26 12:14:21 +00:00
Ville Skyttä 4cdaef701d
refactor(registry): use ubi for helm-diff (#4717) 2025-03-26 07:59:39 -04:00
Ville Skyttä 54536e451c
refactor(registry): use ubi for haxe (#4716) 2025-03-26 07:59:30 -04:00
Ville Skyttä 07db24fb91
refactor(registry): use ubi for mockolo (#4705) 2025-03-26 07:59:17 -04:00
Ville Skyttä dbd73df6e3
refactor(registry): use ubi for getenvoy (#4715) 2025-03-25 19:34:06 -04:00
Ville Skyttä 779f1c8ab2
refactor(registry): use ubi for auto-doc (#4714) 2025-03-25 20:42:23 +00:00
Ville Skyttä 1ab3b06fb4
refactor(registry): use ubi for opsgenie-lamp (#4712) 2025-03-25 16:36:37 -04:00
Ville Skyttä 033598f924
refactor(registry): use ubi for assh (#4713) 2025-03-25 16:36:16 -04:00
Giacomo Venturini d3b6c05d80
feat: Set usage arguments and flag as environment variables before running the command (#4700)
Fixes https://github.com/jdx/mise/issues/4070

Toml tasks with an array of commands in their `run` section are now
supported as well.
2025-03-24 17:52:46 -04:00
mise-en-dev 1557efbfd4
chore: release 2025.3.8 (#4684)
### 🚀 Features

- **(registry)** add aichat by
[@kit494way](https://github.com/kit494way) in
[#4691](https://github.com/jdx/mise/pull/4691)

### 🐛 Bug Fixes

- Update flake to fix nix build by
[@akanter](https://github.com/akanter) in
[#4686](https://github.com/jdx/mise/pull/4686)

### 📚 Documentation

- fix bash completion setup instructions by
[@bestagi](https://github.com/bestagi) in
[#3920](https://github.com/jdx/mise/pull/3920)
- small tidy of shims docs by [@AlecRust](https://github.com/AlecRust)
in [#4693](https://github.com/jdx/mise/pull/4693)

### Chore

- remove broken ripsecrets test by [@jdx](https://github.com/jdx) in
[bb382aa](bb382aa783)
- make awscli compatible with R2 by [@jdx](https://github.com/jdx) in
[cad7fa2](cad7fa285e)
- enable workflow_dispatch for docs task by
[@jdx](https://github.com/jdx) in
[b0578db](b0578db141)

### New Contributors

- @akanter made their first contribution in
[#4686](https://github.com/jdx/mise/pull/4686)
- @bestagi made their first contribution in
[#3920](https://github.com/jdx/mise/pull/3920)
2025-03-24 09:03:20 -05:00
jdx b0578db141
chore: enable workflow_dispatch for docs task 2025-03-24 06:45:29 -05:00
jdx cad7fa285e
chore: make awscli compatible with R2 2025-03-24 06:44:30 -05:00
jdx bb382aa783
chore: remove broken ripsecrets test 2025-03-24 06:38:51 -05:00
Alec Rust b55f38b0ff
docs: small tidy of shims docs (#4693)
Removes an incorrect `run` word in the docs and adjusts `rust` to
`Rust`.
2025-03-22 07:55:31 -05:00
KITAGAWA Yasutaka d38a406874
feat(registry): add aichat (#4691) 2025-03-22 04:47:05 -05:00
Aaron Kanter a8f94eaabb
fix: Update flake to fix nix build (#4686)
See:
https://github.com/jdx/mise/discussions/4685

From https://github.com/jdx/mise/pull/4541
2025-03-21 16:23:06 -05:00
Muhamad Bestagi Romadhon 6df6f92717
docs: fix bash completion setup instructions (#3920)
* docs: fix bash completion setup instructions

Fix this error
```
bash: /etc/bash_completion.d/mise: Permission denied
```

* Update docs/installing-mise.md

Co-authored-by: Mark Lee <malept@users.noreply.github.com>

---------

Co-authored-by: jdx <216188+jdx@users.noreply.github.com>
Co-authored-by: Mark Lee <malept@users.noreply.github.com>
2025-03-21 16:32:06 +00:00
mise-en-dev b4c428ad00
chore: release 2025.3.7 (#4661)
### 🐛 Bug Fixes

- **(node)** skip gpg verification of sig file not found by
[@jdx](https://github.com/jdx) in
[#4663](https://github.com/jdx/mise/pull/4663)
- **(task)** allow args to be used with tera tests by
[@risu729](https://github.com/risu729) in
[#4605](https://github.com/jdx/mise/pull/4605)
- Fix syntax error on `activate nu` when PATH contains shims by
[@atty303](https://github.com/atty303) in
[#4349](https://github.com/jdx/mise/pull/4349)

### 🚜 Refactor

- **(registry)** use ubi for yamlscript by
[@scop](https://github.com/scop) in
[#4670](https://github.com/jdx/mise/pull/4670)

### 📚 Documentation

- Fix typo in java.md by [@hverlin](https://github.com/hverlin) in
[#4672](https://github.com/jdx/mise/pull/4672)

### ◀️ Revert

- "chore: temporarily disable bootstrap test" by
[@jdx](https://github.com/jdx) in
[#4658](https://github.com/jdx/mise/pull/4658)

### 📦️ Dependency Updates

- update rust crate ctor to 0.4 by
[@renovate[bot]](https://github.com/renovate[bot]) in
[#4553](https://github.com/jdx/mise/pull/4553)

### Chore

- **(registry)** declare copier by
[@looztra](https://github.com/looztra) in
[#4669](https://github.com/jdx/mise/pull/4669)
- Update to the latest version of ubi by
[@autarch](https://github.com/autarch) in
[#4648](https://github.com/jdx/mise/pull/4648)
- bump expr by [@jdx](https://github.com/jdx) in
[#4666](https://github.com/jdx/mise/pull/4666)
- added android-sdk by [@jdx](https://github.com/jdx) in
[#4668](https://github.com/jdx/mise/pull/4668)
- rename mise-php to asdf-php by [@jdx](https://github.com/jdx) in
[#4674](https://github.com/jdx/mise/pull/4674)

### New Contributors

- @atty303 made their first contribution in
[#4349](https://github.com/jdx/mise/pull/4349)
- @looztra made their first contribution in
[#4669](https://github.com/jdx/mise/pull/4669)
2025-03-21 11:14:41 -05:00
jdx d40cec0a6c
chore: rename mise-php to asdf-php (#4674) 2025-03-20 13:59:00 +00:00
Koji AGAWA 290b9fc62f
fix: Fix syntax error on `activate nu` when PATH contains shims (#4349)
## Background and Purpose

When nushell has shims in the PATH, `activate nu` outputs an incorrect
script.

The problem is at the beginning of the script generated by `activate nu`
```
set,Path,C:\Program Files\Microsoft VS Code\bin;C:\Program Files\PowerShell\7
```

This gives the following error in nushell 0.102.
```
Error: nu:🐚:external_command

  × External command failed
   ╭─[entry #55:1:1]
 1 │ set,Path,C:\Program Files\Microsoft VS Code\bin;C:\Program Files\PowerShell\7
   · ─────────┬─────────
   ·          ╰── Command `set,Path,C:\Program` not found
   ╰────
  help: `set,Path,C:\Program` is neither a Nushell built-in or a known external command
```

This is not a Nu script, but a CSV protocol.
The nushell functions defined in `activate` (`def “parse vars”`) parse
CSV only for `deactivate`, `shell` and `sh` command output.
The CSV protocol is not available in `activate` itself, so it must
output valid Nu scripts.

## Changes
- `Shell::set_env` should change the output if it is running in the
context of `activate`. I introduced `enum ActivatePrelude` to avoid
making it mutable.

## Impact
- The output of other shells is kept the same.

Co-authored-by: jdx <216188+jdx@users.noreply.github.com>
2025-03-20 13:20:11 +00:00
Hugues Verlin 7f3c790b52
docs: Fix typo in java.md (#4672) 2025-03-20 13:05:50 +00:00
Christophe Furmaniak d03adece6b
chore(registry): declare copier (#4669)
# Description

- chore(registry): declare copier with pipx/uvx backend and asdf plugin

## Note

- if there is a way to test this kind of PR locally, I'd be happy to do
it (did not find something related to the registry PRs in the doc)
2025-03-20 13:04:41 +00:00
Ville Skyttä 47158a07b6
refactor(registry): use ubi for yamlscript (#4670)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-20 05:51:32 -05:00
jdx f3e4c1bb5a
chore: added android-sdk (#4668) 2025-03-19 11:55:05 +00:00
jdx d34a53e0a4
chore: bump expr (#4666) 2025-03-19 10:34:18 +00:00
Dave Rolsky 05e82b614f
chore: Update to the latest version of ubi (#4648) 2025-03-18 19:32:48 -04:00
jdx 3a0f1024a2
fix(node): skip gpg verification of sig file not found (#4663)
needed for unofficial builds
2025-03-18 16:15:22 +00:00
renovate[bot] cf01e04baa
chore(deps): update rust crate ctor to 0.4 (#4553)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [ctor](https://redirect.github.com/mmastrac/rust-ctor) |
dev-dependencies | minor | `0.2` -> `0.4` |

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Friday" in timezone
America/Chicago, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/jdx/mise).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-18 10:19:02 -05:00
jdx 96c7a58542
revert: "chore: temporarily disable bootstrap test" (#4658)
This reverts commit 599258aa4f.
2025-03-18 14:06:20 +00:00
Risu 6d07ed13d4
fix(task): allow args to be used with tera tests (#4605)
This PR enables the use of `arg`, `option`, and `flag` in task templates
within `if` conditions or similar syntaxes.

### Current Behavior
Currently, placeholders are replaced only after the Tera template is
fully rendered. So, expressions like the following:

```toml
[tasks.test]
run = "echo {% if flag(name='test') == 'true' %}test is true{% endif %}"
```
would incorrectly render `mise test --test` as just `echo ` because
`'MISE_TASK_ARG:test:MISE_TASK_ARG' != 'true'`.

### Changes
Since we need to parse the usage spec before rendering the full Tera
template, this PR adds the second rendering after the usage spec is
processed. This ensures that expressions with nest like this are
evaluated correctly.

```toml
[tasks.test]
run = "echo {% if flag(name=env.FLAG_NAME) == 'true' %}TRUE{% endif %}"
```

Re-rendering the template might introduce some performance overhead, but
I believe it's the simplest solution for this.
Of course, templates with more nests cannot be parsed correctly, but it
is impossible if we are using usage to parse args in the template.

~~I still need to fix this PR to avoid code duplication and handle
escapes, but I’d like to hear your thoughts on this approach.~~

---

Apologies for creating a PR directly. I was debugging locally and wanted
to share the idea.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-18 13:51:48 +00:00
mise-en-dev aaee608506
chore: release 2025.3.6 (#4659)
### Chore

- unpin aws-cli by [@jdx](https://github.com/jdx) in
[7fabed5](7fabed5c70)
- temporarily disable bootstrap test by [@jdx](https://github.com/jdx)
in
[599258a](599258aa4f)
2025-03-18 07:51:15 -05:00
jdx 599258aa4f
chore: temporarily disable bootstrap test 2025-03-18 07:25:16 -05:00
jdx 7fabed5c70
chore: unpin aws-cli 2025-03-18 07:14:24 -05:00
mise-en-dev 942564f57b
chore: release 2025.3.5 (#4657)
### 🚀 Features

- **(registry)** use ubi for glab by [@scop](https://github.com/scop) in
[#4643](https://github.com/jdx/mise/pull/4643)
- ubi forge option support by [@scop](https://github.com/scop) in
[#4642](https://github.com/jdx/mise/pull/4642)

### 🐛 Bug Fixes

- **(tera)** use default inline shell to parse exec template by
[@risu729](https://github.com/risu729) in
[#4645](https://github.com/jdx/mise/pull/4645)
2025-03-18 07:11:24 -05:00
Ville Skyttä 5b13e4e1a5
feat: ubi forge option support (#4642)
https://docs.rs/ubi/0.5.2/ubi/struct.UbiBuilder.html#method.forge

Without this, gitlab.com projects can be installed by specifying the
full URL, but that's a bit unwieldy and doesn't work for other GitLab
instances besides the gitlab.com one.
2025-03-18 06:01:28 -05:00
Ville Skyttä bfe8323964
feat(registry): use ubi for glab (#4643)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-18 06:00:31 -05:00
Risu 44ecb0f647
fix(tera): use default inline shell to parse exec template (#4645)
Fixes https://github.com/jdx/mise/discussions/4607.

I used `SETTINGS.default_inline_shell()` because the parsed scripts are
executed with it, but `env::SHELL` should also be fine for this case.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-18 05:59:54 -05:00
mise-en-dev a37a708025
chore: release 2025.3.4 (#4638)
### 🐛 Bug Fixes

- Failed to create venv at the same time by multiple uv processes by
[@NavyD](https://github.com/NavyD) in
[#4640](https://github.com/jdx/mise/pull/4640)
2025-03-18 05:59:31 -05:00