chore(deps): update dependency shfmt to v3.12.0
This MR contains the following updates:
Package | Update | Change |
---|---|---|
shfmt | minor |
3.7.0 -> 3.12.0
|
WARNING: this job ran in a Renovate pipeline that doesn't support the configuration required for common-ci-tasks Renovate presets.
Release Notes
mvdan/sh (shfmt)
v3.12.0
- The
mvdan-sh
JS package is discontinued in favor ofsh-syntax
- #1145 - cmd/shfmt
-
interp
- Add
IsBuiltin
to check if a command name is a shell built-in - #1164 - Add
HandlerContext.Builtin
to allowExecHandlerFunc
to call built-ins - Initial support for
$!
andwait PID
- #221 - Return non-fatal
ExecHandlerFunc
errors via theRunner.Run
API - Add
HandlerContext.Pos
to provide handlers with source positions - Deprecate
NewExitStatus
andIsExitStatus
in favor ofExitStatus
- Fix
wait
to 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
$RANDOM
and$SRANDOM
- Set
$BASH_REMATCH
when matching regular expressions via=~
- Support modifying local vars from the parent calling function
- Add
-
expand
- Adjust which backslash sequences are expanded in here-docs - #1138
- Tweak tilde expansions to match Bash semantics
-
pattern
- Remove the flawed and broken
Braces
mode; usesyntax.SplitBraces
instead - Tweak
**
to only act as "globstar" when alone as a path element - #1149 - Tweak
*
and**
to not match leading dots in basenames - Add a
NoGlobStar
mode to match the POSIX semantics
- Remove the flawed and broken
-
fileutil
- Treat all non-regular files as definitely not shell scripts - #1089
v3.11.0
This release drops support for Go 1.22 and includes many enhancements.
-
cmd/shfmt
- Support
-l=0
and-f=0
to split filenames with null bytes - #1096
- Support
-
syntax
- New iterator API:
Parser.WordsSeq
- Fix
Parser.Incomplete
andIsIncomplete
to work well withParser.Words
- #937 - Initial support for parsing incomplete shell via
RecoverErrors
- Expand
LangError
to include which language was used when parsing
- New iterator API:
-
interp
- Refactor setting variables to fix array declaration edge cases - #1108
- Fix
test
read/write/exec operators to work correctly on directories - #1116 - Replace the
cancelreader
dependency withos.File.SetReadDeadline
- Avoid waiting for process substitutions, matching Bash
- Skip
OpenHandler
when opening named pipes for process substitutions - #1120 - Use
TMPDIR
if set viaEnv
to create temporary files such as named pipes
- expand
Consider becoming a sponsor if you benefit from the work that went into this release!
v3.10.0
- cmd/shfmt
- syntax
- interp
Consider becoming a sponsor if you benefit from the work that went into this release!
v3.9.0
This release drops support for Go 1.21 and includes many fixes.
-
cmd/shfmt
- Switch the diff implementation to remove one dependency
-
syntax
- Protect against overflows in position offset integers
-
interp
- Use
os.Pipe
for stdin to prevent draining by subprocesses - #1085 - Support cancelling reads in builtins when stdin is a file - #1066
- Support the
nocaseglob
bash option - #1073 - Support the Bash 5.2
@k
parameter expansion operator - Support the
test -O
andtest -G
operators on non-Windows - #1080 - Support the
read -s
builtin flag - #1063
- Use
- expand
A special thanks to @theclapp for their contributors to this release!
Consider becoming a sponsor if you benefit from the work that went into this release!
v3.8.0
This release drops support for Go 1.19 and 1.20 and includes many
features and bugfixes, such as improving EditorConfig support in shfmt
.
- cmd/shfmt
-
syntax
- Allow formatting redirects before all command argumetnts - #942
- Support brace expansions with uppercase letters - #1042
- Unescape backquotes in single quotes within backquotes - #1041
- Better error when using
function
in POSIX mode - #993 - Better column numbers for escapes inside backquotes - #1028
- interp
-
expand
- Add support for
fs.DirEntry
viaReadDir2
- Support zero-padding in brace expansions - #1042
- Add support for
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.