Merge pull request #45115 from vvoland/update-shfmt
Dockerfile: Update shfmt to 3.6.0
This commit is contained in:
commit
0bcdbbeedc
2 changed files with 3 additions and 3 deletions
|
@ -237,7 +237,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
|
|||
&& /build/gotestsum --version
|
||||
|
||||
FROM base AS shfmt
|
||||
ARG SHFMT_VERSION=v3.0.2
|
||||
ARG SHFMT_VERSION=v3.6.0
|
||||
RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||
--mount=type=cache,target=/go/pkg/mod \
|
||||
GOBIN=/build/ GO111MODULE=on go install "mvdan.cc/sh/v3/cmd/shfmt@${SHFMT_VERSION}" \
|
||||
|
|
|
@ -103,8 +103,8 @@ cat > $builddir/result/$new_image_id/json <<- EOS
|
|||
EOS
|
||||
|
||||
if [ -n "$docker_base_image" ]; then
|
||||
image_id=$(docker inspect -f "{{.Id}}" "$docker_base_image")
|
||||
echo ", \"parent\": \"$image_id\"" >> $builddir/result/$new_image_id/json
|
||||
image_id=$(docker inspect -f "{{.Id}}" "$docker_base_image")
|
||||
echo ", \"parent\": \"$image_id\"" >> $builddir/result/$new_image_id/json
|
||||
fi
|
||||
|
||||
echo "}" >> $builddir/result/$new_image_id/json
|
||||
|
|
Loading…
Reference in a new issue