chore(deps): bump mvdan.cc/sh/v3 from 3.5.1 to 3.12.0
Bumps mvdan.cc/sh/v3 from 3.5.1 to 3.12.0.
Release notes
Sourced from mvdan.cc/sh/v3's releases.
v3.12.0
- The
mvdan-shJS package is discontinued in favor ofsh-syntax- #1145- cmd/shfmt
- interp
- Add
IsBuiltinto check if a command name is a shell built-in - #1164- Add
HandlerContext.Builtinto allowExecHandlerFuncto call built-ins- Initial support for
$!andwait PID- #221- Return non-fatal
ExecHandlerFuncerrors via theRunner.RunAPI- Add
HandlerContext.Posto provide handlers with source positions- Deprecate
NewExitStatusandIsExitStatusin favor ofExitStatus- Fix
waitto always return the status of the last given job- Copy all env vars for background subshells to avoid data races
- Support reading random numbers via
$RANDOMand$SRANDOM- Set
$BASH_REMATCHwhen matching regular expressions via=~- Support modifying local vars from the parent calling function
- expand
- Adjust which backslash sequences are expanded in here-docs - #1138
- Tweak tilde expansions to match Bash semantics
- pattern
- Remove the flawed and broken
Bracesmode; usesyntax.SplitBracesinstead- Tweak
**to only act as "globstar" when alone as a path element - #1149- Tweak
*and**to not match leading dots in basenames- Add a
NoGlobStarmode to match the POSIX semantics- fileutil
- Treat all non-regular files as definitely not shell scripts - #1089
Consider becoming a sponsor if you benefit from the work that went into this release!
Binaries built on
go version go1.24.4 linux/amd64with:CGO_ENABLED=0 go build -trimpath -ldflags="-w -s -X=main.version=v3.12.0"
v3.11.0
This release drops support for Go 1.22 and includes many enhancements.
- cmd/shfmt
- Support
-l=0and-f=0to split filenames with null bytes - #1096- syntax
- New iterator API:
Parser.WordsSeq- Fix
Parser.IncompleteandIsIncompleteto work well withParser.Words- #937- Initial support for parsing incomplete shell via
RecoverErrors- Expand
LangErrorto include which language was used when parsing- interp
... (truncated)
Changelog
Sourced from mvdan.cc/sh/v3's changelog.
[3.12.0] - 2025-07-06
- The
mvdan-shJS package is discontinued in favor ofsh-syntax- #1145- cmd/shfmt
- interp
- Add
IsBuiltinto check if a command name is a shell built-in - #1164- Add
HandlerContext.Builtinto allowExecHandlerFuncto call built-ins- Initial support for
$!andwait PID- #221- Return non-fatal
ExecHandlerFuncerrors via theRunner.RunAPI- Add
HandlerContext.Posto provide handlers with source positions- Deprecate
NewExitStatusandIsExitStatusin favor ofExitStatus- Fix
waitto always return the status of the last given job- Copy all env vars for background subshells to avoid data races
- Support reading random numbers via
$RANDOMand$SRANDOM- Set
$BASH_REMATCHwhen matching regular expressions via=~- Support modifying local vars from the parent calling function
- expand
- Adjust which backslash sequences are expanded in here-docs - #1138
- Tweak tilde expansions to match Bash semantics
- pattern
- Remove the flawed and broken
Bracesmode; usesyntax.SplitBracesinstead- Tweak
**to only act as "globstar" when alone as a path element - #1149- Tweak
*and**to not match leading dots in basenames- Add a
NoGlobStarmode to match the POSIX semantics- fileutil
- Treat all non-regular files as definitely not shell scripts - #1089
[3.11.0] - 2025-03-05
This release drops support for Go 1.22 and includes many enhancements.
- cmd/shfmt
- Support
-l=0and-f=0to split filenames with null bytes - #1096- syntax
- New iterator API:
Parser.WordsSeq- Fix
Parser.IncompleteandIsIncompleteto work well withParser.Words- #937- Initial support for parsing incomplete shell via
RecoverErrors- Expand
LangErrorto include which language was used when parsing- interp
- Refactor setting variables to fix array declaration edge cases - #1108
- Fix
testread/write/exec operators to work correctly on directories - #1116- Replace the
cancelreaderdependency withos.File.SetReadDeadline- Avoid waiting for process substitutions, matching Bash
- Skip
OpenHandlerwhen opening named pipes for process substitutions - #1120- Use
TMPDIRif set viaEnvto create temporary files such as named pipes- expand
- New iterator API:
FieldsSeq- Correctly handle repeated backslashes in double quotes - #1106
... (truncated)
Commits
8202166CHANGELOG: add entry for v3.12.027a4af8README.md: add another example to caveats4e01dd2interp: add HandlerContext.Builtin0797923interp: add test cases with exit inside a process substitutiondbf7b7cinterp: add HandlerContext.Pos0dc0b96interp: swap math/rand for math/rand/v23beaa0finterp: add exitStatus.ok forcode == 0comparisonsb6baa19interp: move oneIf under exitStatus46bb4f2interp: export IsBuiltin0bb228binterp: refactor builtins to return an exitStatus- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Deploy Preview for devspace-docs canceled.
| Name | Link |
|---|---|
| Latest commit | 9b269877179e1f5cbea025040dbeb8989d7c9ae2 |
| Latest deploy log | https://app.netlify.com/projects/devspace-docs/deploys/68ee6d8cf78fa80008804c42 |