Skip to content

Commit 3883f3a

Browse files
chore(deps): update dependency shfmt to v3.13.1 (#2039)
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [shfmt](https://redirect.github.com/mvdan/sh) | minor | `v3.12.0` → `3.13.1` | --- ### Release Notes <details> <summary>mvdan/sh (shfmt)</summary> ### [`v3.13.1`](https://redirect.github.com/mvdan/sh/blob/HEAD/CHANGELOG.md#3131---2026-03-09) [Compare Source](https://redirect.github.com/mvdan/sh/compare/v3.13.0...v3.13.1) - **cmd/shfmt** - Add support for `[[zsh]]` in EditorConfig files - Detect the shell variant from filenames like `.zshrc` and `.bash_profile` - Fix `--apply-ignore` when used with explicit args - [#&#8203;1310](https://redirect.github.com/mvdan/sh/issues/1310) - **syntax** - Revert an accidental change to how array subscripts are formatted - [#&#8203;1314](https://redirect.github.com/mvdan/sh/issues/1314) - Never join `;;` with the previous line when formatting - [#&#8203;1289](https://redirect.github.com/mvdan/sh/issues/1289) - Fix a bug where `$1[foo]` was parsed as a subscript in Zsh - [#&#8203;1288](https://redirect.github.com/mvdan/sh/issues/1288) - Correctly parse `$!` in double quotes in Zsh - [#&#8203;1298](https://redirect.github.com/mvdan/sh/issues/1298) - Allow indexing into special parameters in Zsh - [#&#8203;1299](https://redirect.github.com/mvdan/sh/issues/1299) - Allow parameter expansions with empty names in Zsh - [#&#8203;1280](https://redirect.github.com/mvdan/sh/issues/1280) - **interp** - Test against Bash 5.3 and fix three new discrepancies - Fix a few bugs related to `nameref` variables - Avoid panics when user input encounters unimplemented features ### [`v3.13.0`](https://redirect.github.com/mvdan/sh/releases/tag/v3.13.0) [Compare Source](https://redirect.github.com/mvdan/sh/compare/v3.12.0...v3.13.0) This release introduces support for [Zsh](https://www.zsh.org/) in the parser and formatter, which was tracked in issue [#&#8203;120](https://redirect.github.com/mvdan/sh/issues/120) alongside the label <https://github.com/mvdan/sh/labels/zsh>. While support is not complete, it should be far enough for many use cases. This release also drops support for Go 1.24 and includes many other enhancements: - **cmd/shfmt** - Exit with a non-zero status when `-l` prints any filenames - `shfmt -version` is now derived from the git current tag, dropping the `-ldflags` workaround - **syntax** - New nodes types and node fields are introduced alongside `LangZsh` - `LangVariant` is now a bitset, allowing the use of sets like "Bash-like" - Add `InteractiveSeq` and `StmtsSeq` iterator methods for `Parser` - Stop exposing the internal buffer in `Printer` via struct embedding - Support the use of brace expansions like `declare {a,b}_c=value` - Fix a bug where POSIX and Bash incorrectly allowed empty command lists - **interp** - Add support for `shopt -s dotglob` and `shopt -s extglob` - Add support for simple uses of `!(expr)` extended glob patterns - Support more builtin flags for `declare`, `type`, `read` - Fix various bugs relating to nulls, errors, and arrays - **expand** - Add `Config.DotGlob` and `Config.ExtGlob` for the interpreter - Add `Variable.Flags` to get the one-character `declare` flags - Do not force env vars on Windows to be uppercase - Fix various bugs relating to glob pattern matching - **pattern** - Add `GlobLeadingDot` and `ExtendedOperators` for the interpreter - Add `NegExtGlobError` to mark the use of `!(expr)` negation patterns Consider [becoming a sponsor](https://redirect.github.com/sponsors/mvdan) if you benefit from the work that went into this release! Binaries built on `go version go1.26.1 linux/amd64` with: ``` CGO_ENABLED=0 go build -trimpath -ldflags="-w -s" ``` Note that this release no longer includes a `sha256sums.txt` asset; GitHub now [provide digests natively](https://github.blog/changelog/2025-06-03-releases-now-expose-digests-for-release-assets/). </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, 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/prometheus/client_java). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMzkuNCIsInVwZGF0ZWRJblZlciI6IjQzLjEzOS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 1072ef4 commit 3883f3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ editorconfig-checker = "v3.6.1"
1919
"pipx:codespell" = "2.4.1"
2020
"pipx:ruff" = "0.15.0"
2121
shellcheck = "v0.11.0"
22-
shfmt = "v3.12.0"
22+
shfmt = "3.13.1"
2323

2424
[env]
2525
FLINT_CONFIG_DIR = ".github/config"

0 commit comments

Comments
 (0)