Upgrade shfmt from 3.7.0 to 3.9.0 (#965)
parent
2604088666
commit
ac4b767236
|
@ -31,10 +31,10 @@ jobs:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.21.0"
|
go-version: ">=1.22.6"
|
||||||
cache: false
|
cache: false
|
||||||
- name: Install shfmt
|
- name: Install shfmt
|
||||||
run: GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@v3.7.0
|
run: GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@v3.9.0
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Check coding style
|
- name: Check coding style
|
||||||
|
|
|
@ -11,7 +11,7 @@ echo '# Linting shell scripts'
|
||||||
if ! docker --version >/dev/null 2>/dev/null; then
|
if ! docker --version >/dev/null 2>/dev/null; then
|
||||||
echo 'Docker is not installed, or it is not running.' >&2
|
echo 'Docker is not installed, or it is not running.' >&2
|
||||||
rc=1
|
rc=1
|
||||||
elif ! docker run --rm -v "$SRC_DIR:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.7.0-alpine fix; then
|
elif ! docker run --rm -v "$SRC_DIR:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.9.0-alpine fix; then
|
||||||
echo 'ERROR!' >&2
|
echo 'ERROR!' >&2
|
||||||
rc=1
|
rc=1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -16,7 +16,7 @@ if errorlevel 1 (
|
||||||
echo Docker is not installed, or it's not running >&2
|
echo Docker is not installed, or it's not running >&2
|
||||||
set rc=1
|
set rc=1
|
||||||
) else (
|
) else (
|
||||||
docker run --rm -v "%SRC_DIR%:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.7.0-alpine fix
|
docker run --rm -v "%SRC_DIR%:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.9.0-alpine fix
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo ERROR! >&2
|
echo ERROR! >&2
|
||||||
set rc=1
|
set rc=1
|
||||||
|
|
Loading…
Reference in New Issue