Skip to content

Commit

Permalink
Bump default version of shfmt from 3.2.4 to 3.6.0 (pantsbuild#17777)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano authored Dec 15, 2022
1 parent 3049243 commit 7f364f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions build-support/bin/rust/bootstrap_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ function bootstrap_native_code() {
engine_version_in_metadata="$(sed -n 's/^engine_version: //p' "${NATIVE_ENGINE_RESOURCE_METADATA}")"
fi

if [[ -f "${NATIVE_ENGINE_RESOURCE}" && -f \
"${NATIVE_CLIENT_PATH}" && \
if [[ -f "${NATIVE_ENGINE_RESOURCE}" && -f "${NATIVE_CLIENT_PATH}" &&
"${engine_version_calculated}" == "${engine_version_in_metadata}" ]]; then
return 0
fi
Expand Down
6 changes: 5 additions & 1 deletion src/python/pants/backend/shell/lint/shfmt/subsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ class Shfmt(TemplatedExternalTool):
name = "shfmt"
help = "An autoformatter for shell scripts (https://github.com/mvdan/sh)."

default_version = "v3.2.4"
default_version = "v3.6.0"
default_known_versions = [
"v3.2.4|macos_arm64 |e70fc42e69debe3e400347d4f918630cdf4bf2537277d672bbc43490387508ec|2998546",
"v3.2.4|macos_x86_64|43a0461a1b54070ddc04fbbf1b78f7861ee39a65a61f5466d15a39c4aba4f917|2980208",
"v3.2.4|linux_arm64 |6474d9cc08a1c9fe2ef4be7a004951998e3067d46cf55a011ddd5ff7bfab3de6|2752512",
"v3.2.4|linux_x86_64|3f5a47f8fec27fae3e06d611559a2063f5d27e4b9501171dde9959b8c60a3538|2797568",
"v3.6.0|macos_arm64 |633f242246ee0a866c5f5df25cbf61b6af0d5e143555aca32950059cf13d91e0|3065202",
"v3.6.0|macos_x86_64|b8c9c025b498e2816b62f0b717f6032e9ab49e725a45b8205f52f66318f17185|3047552",
"v3.6.0|linux_arm64 |fb1cf0af3dbe9aac7d98e38e3c7426765208ecfe23cb2da51037bb234776fd70|2818048",
"v3.6.0|linux_x86_64|5741a02a641de7e56b8da170e71a97e58050d66a3cf485fb268d6a5a8bb74afb|2850816",
]

default_url_template = (
Expand Down

0 comments on commit 7f364f8

Please sign in to comment.