Upgrade shfmt from 3.4.0 to 3.7.0 (#812)

pull/816/head
Michele Locati 2023-10-10 10:37:52 +02:00 committed by GitHub
parent 7863b6ddcb
commit 99e346c360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -31,9 +31,9 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: "1.17.1"
go-version: "1.21.0"
- name: Install shfmt
run: GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@v3.4.0
run: GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@v3.7.0
- name: Checkout
uses: actions/checkout@v2
- name: Check coding style

View File

@ -11,7 +11,7 @@ echo '# Linting shell scripts'
if ! docker --version >/dev/null 2>/dev/null; then
echo 'Docker is not installed, or it is not running.' >&2
rc=1
elif ! docker run --rm -v "$SRC_DIR:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.4.0-alpine fix; then
elif ! docker run --rm -v "$SRC_DIR:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.7.0-alpine fix; then
echo 'ERROR!' >&2
rc=1
fi

View File

@ -16,7 +16,7 @@ if errorlevel 1 (
echo Docker is not installed, or it's not running >&2
set rc=1
) else (
docker run --rm -v "%SRC_DIR%:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.4.0-alpine fix
docker run --rm -v "%SRC_DIR%:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.7.0-alpine fix
if errorlevel 1 (
echo ERROR! >&2
set rc=1