From 89672bc8d6a947b924e554d8ca50fcd84f1bccfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 19 May 2022 16:03:14 +0300 Subject: [PATCH] chore(upstream): upgrade to 3.5.0 Using "latest" for the docker image tag for now per https://github.com/mvdan/sh/issues/860#issuecomment-1124710547 --- .pre-commit-hooks.yaml | 5 +++-- README.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 66b7d1b..0ed72ff 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -2,7 +2,7 @@ name: shfmt description: Shell source code formatter (native install) language: golang - additional_dependencies: [mvdan.cc/sh/v3/cmd/shfmt@v3.4.3] + additional_dependencies: [mvdan.cc/sh/v3/cmd/shfmt@v3.5.0] entry: shfmt args: [-w, -s] types: [shell] @@ -12,7 +12,8 @@ name: shfmt description: Shell source code formatter (Docker image) language: docker_image - entry: --net none mvdan/shfmt:v3.4.3@sha256:b337f4f4f81220ac83daa7d299ff1a9b68725a099ccc4f1580496a43e959b94f + # latest: https://github.com/mvdan/sh/issues/860#issuecomment-1124710547 + entry: --net none mvdan/shfmt:latest@sha256:a89cee7bbb1ded7543169af3aeff1eba97884177f2c9af766105ecf56792bd61 args: [-w, -s] types: [shell] stages: [commit, merge-commit, push, manual] diff --git a/README.md b/README.md index ba7ba4f..8b9bf91 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Usage in `.pre-commit-config.yaml`: ```yaml - repo: https://github.com/scop/pre-commit-shfmt - rev: v3.4.3-1 + rev: v3.5.0-1 hooks: # Choose one of: - id: shfmt # native (requires Go to build)