mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-01 03:00:26 +00:00
Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc9582d417 | ||
|
|
7719e6f679 | ||
|
|
aa3aa1fbea | ||
|
|
49b013c5cc | ||
|
|
5651179950 | ||
|
|
7fde8f2137 | ||
|
|
3c9b6296bb | ||
|
|
1dd920e054 | ||
|
|
914ac1e29d | ||
|
|
63913c9c7c | ||
|
|
a433d87f12 | ||
|
|
3ad95ecaad | ||
|
|
bd8846282c |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,5 @@
|
||||
target
|
||||
Cargo.lock
|
||||
.venv
|
||||
tmp
|
||||
|
||||
# For platform and editor specific settings, it is recommended to add to
|
||||
|
||||
28
CHANGELOG.md
28
CHANGELOG.md
@@ -10,6 +10,28 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.49.36] - 2025-03-27
|
||||
|
||||
- Update `release-plz@latest` to 0.3.129.
|
||||
|
||||
- Update `protoc@latest` to 3.30.2.
|
||||
|
||||
## [2.49.35] - 2025-03-25
|
||||
|
||||
- Update `cargo-nextest@latest` to 0.9.93.
|
||||
|
||||
- Update `typos@latest` to 1.30.3.
|
||||
|
||||
- Update `wash@latest` to 0.41.0.
|
||||
|
||||
## [2.49.34] - 2025-03-24
|
||||
|
||||
- Update `knope@latest` to 0.19.0.
|
||||
|
||||
## [2.49.33] - 2025-03-23
|
||||
|
||||
- Update `release-plz@latest` to 0.3.128.
|
||||
|
||||
## [2.49.32] - 2025-03-20
|
||||
|
||||
- Update `wasmtime@latest` to 31.0.0.
|
||||
@@ -3716,7 +3738,11 @@ Note: This release is considered a breaking change because installing on version
|
||||
|
||||
Initial release
|
||||
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.49.32...HEAD
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.49.36...HEAD
|
||||
[2.49.36]: https://github.com/taiki-e/install-action/compare/v2.49.35...v2.49.36
|
||||
[2.49.35]: https://github.com/taiki-e/install-action/compare/v2.49.34...v2.49.35
|
||||
[2.49.34]: https://github.com/taiki-e/install-action/compare/v2.49.33...v2.49.34
|
||||
[2.49.33]: https://github.com/taiki-e/install-action/compare/v2.49.32...v2.49.33
|
||||
[2.49.32]: https://github.com/taiki-e/install-action/compare/v2.49.31...v2.49.32
|
||||
[2.49.31]: https://github.com/taiki-e/install-action/compare/v2.49.30...v2.49.31
|
||||
[2.49.30]: https://github.com/taiki-e/install-action/compare/v2.49.29...v2.49.30
|
||||
|
||||
27
manifests/cargo-nextest.json
generated
27
manifests/cargo-nextest.json
generated
@@ -19,10 +19,33 @@
|
||||
},
|
||||
"license_markdown": "[Apache-2.0](https://github.com/nextest-rs/nextest/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/nextest-rs/nextest/blob/main/LICENSE-MIT)",
|
||||
"latest": {
|
||||
"version": "0.9.92"
|
||||
"version": "0.9.93"
|
||||
},
|
||||
"0.9": {
|
||||
"version": "0.9.92"
|
||||
"version": "0.9.93"
|
||||
},
|
||||
"0.9.93": {
|
||||
"previous_stable_version": "0.9.92",
|
||||
"x86_64_linux_gnu": {
|
||||
"etag": "0x8DD6B207F13B60C",
|
||||
"checksum": "b547ea40a4e0e9ced5c1f040f4525647240044c9312d81b8df613291586e0a2f"
|
||||
},
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DD6B21059D11CB",
|
||||
"checksum": "5a8c0b9682f5bacd75c2e92f906f0ce616a75615b61e52276735f0da96a3578a"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DD6B20A082680E",
|
||||
"checksum": "84a43cec5bd80c2629b877b25e4ed9f57e060e363fe704e3da09a1b6d43097e2"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DD6B21166FBDA2",
|
||||
"checksum": "e62479142fa7fd8fef5e2039d90e1643d1f5e46a3b4edcfba674ed49e2868cc2"
|
||||
},
|
||||
"aarch64_linux_gnu": {
|
||||
"etag": "0x8DD6B20D7191EDE",
|
||||
"checksum": "1ee975e7dadc0d3d439011d4bdbe4b597b197159387555085c68eb40322a0f94"
|
||||
}
|
||||
},
|
||||
"0.9.92": {
|
||||
"previous_stable_version": "0.9.91",
|
||||
|
||||
31
manifests/knope.json
generated
31
manifests/knope.json
generated
@@ -3,7 +3,36 @@
|
||||
"template": null,
|
||||
"license_markdown": "[MIT](https://github.com/knope-dev/knope/blob/main/LICENSE)",
|
||||
"latest": {
|
||||
"version": "0.18.5"
|
||||
"version": "0.19.0"
|
||||
},
|
||||
"0.19": {
|
||||
"version": "0.19.0"
|
||||
},
|
||||
"0.19.0": {
|
||||
"x86_64_linux_musl": {
|
||||
"url": "https://github.com/knope-dev/knope/releases/download/knope/v0.19.0/knope-x86_64-unknown-linux-musl.tgz",
|
||||
"etag": "0x8DD6A4E677301F2",
|
||||
"checksum": "f955fb841000d1e3fba7da3aefd7999bf45cc2dd8c92c2b592b1693138dceae7",
|
||||
"bin": "knope-x86_64-unknown-linux-musl/knope"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"url": "https://github.com/knope-dev/knope/releases/download/knope/v0.19.0/knope-x86_64-apple-darwin.tgz",
|
||||
"etag": "0x8DD6A4E676B695D",
|
||||
"checksum": "e04e54ed96e463543fd4e7e570c2134144750df9d295bdcc410c6872ac6b6e5a",
|
||||
"bin": "knope-x86_64-apple-darwin/knope"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"url": "https://github.com/knope-dev/knope/releases/download/knope/v0.19.0/knope-x86_64-pc-windows-msvc.tgz",
|
||||
"etag": "0x8DD6A4E676A0B53",
|
||||
"checksum": "004a53b96044cd334a353ee365a518f1f5f41ab50070bbdab436e7d4940cac29",
|
||||
"bin": "knope-x86_64-pc-windows-msvc/knope.exe"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"url": "https://github.com/knope-dev/knope/releases/download/knope/v0.19.0/knope-aarch64-apple-darwin.tgz",
|
||||
"etag": "0x8DD6A4E676AA6E2",
|
||||
"checksum": "08752c1819d5be621372e81e2169593bb4eb085590846c015d0c95fc42143be7",
|
||||
"bin": "knope-aarch64-apple-darwin/knope"
|
||||
}
|
||||
},
|
||||
"0.18": {
|
||||
"version": "0.18.5"
|
||||
|
||||
33
manifests/protoc.json
generated
33
manifests/protoc.json
generated
@@ -3,13 +3,40 @@
|
||||
"template": null,
|
||||
"license_markdown": "[BSD-3-Clause](https://github.com/protocolbuffers/protobuf/blob/HEAD/LICENSE)",
|
||||
"latest": {
|
||||
"version": "3.30.1"
|
||||
"version": "3.30.2"
|
||||
},
|
||||
"3": {
|
||||
"version": "3.30.1"
|
||||
"version": "3.30.2"
|
||||
},
|
||||
"3.30": {
|
||||
"version": "3.30.1"
|
||||
"version": "3.30.2"
|
||||
},
|
||||
"3.30.2": {
|
||||
"x86_64_linux_gnu": {
|
||||
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v30.2/protoc-30.2-linux-x86_64.zip",
|
||||
"etag": "0x8DD6C95ABA7434D",
|
||||
"checksum": "327e9397c6fb3ea2a542513a3221334c6f76f7aa524a7d2561142b67b312a01f"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v30.2/protoc-30.2-osx-x86_64.zip",
|
||||
"etag": "0x8DD6C95ABC83AC0",
|
||||
"checksum": "65675c3bb874a2d5f0c941e61bce6175090be25fe466f0ec2d4a6f5978333624"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v30.2/protoc-30.2-win64.zip",
|
||||
"etag": "0x8DD6C95ABF532A9",
|
||||
"checksum": "10f35df7722a69dde8ee92b4a16a4e1cc91cfce82fbb4a371bd046de139aa4a9"
|
||||
},
|
||||
"aarch64_linux_gnu": {
|
||||
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v30.2/protoc-30.2-linux-aarch_64.zip",
|
||||
"etag": "0x8DD6C95AB4483C2",
|
||||
"checksum": "a3173ea338ef91b1605b88c4f8120d6c8ccf36f744d9081991d595d0d4352996"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v30.2/protoc-30.2-osx-aarch_64.zip",
|
||||
"etag": "0x8DD6C95ABAC46B8",
|
||||
"checksum": "92728c650f6cf2b6c37891ae04ef5bc2d4b5f32c5fbbd101eda623f90bb95f63"
|
||||
}
|
||||
},
|
||||
"3.30.1": {
|
||||
"x86_64_linux_gnu": {
|
||||
|
||||
56
manifests/release-plz.json
generated
56
manifests/release-plz.json
generated
@@ -22,10 +22,62 @@
|
||||
},
|
||||
"license_markdown": "[MIT](https://github.com/release-plz/release-plz/blob/main/LICENSE-MIT) OR [Apache-2.0](https://github.com/release-plz/release-plz/blob/main/LICENSE-APACHE)",
|
||||
"latest": {
|
||||
"version": "0.3.127"
|
||||
"version": "0.3.129"
|
||||
},
|
||||
"0.3": {
|
||||
"version": "0.3.127"
|
||||
"version": "0.3.129"
|
||||
},
|
||||
"0.3.129": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DD6CB3D6A8F77C",
|
||||
"checksum": "db20ca18ff51fbfd285c3041bfe6abc419c38d627148608c4c5b5c946be393a9"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DD6CB4B35B631A",
|
||||
"checksum": "285ceffc25bb456f348e603765dfa989c9d049458871c24bf5c6bf9c5af57ed6"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DD6CB490E93459",
|
||||
"checksum": "92df17cb9096ff77f17228318779f1cd40a6dc612c4256f67a550213e6605f43"
|
||||
},
|
||||
"aarch64_linux_musl": {
|
||||
"etag": "0x8DD6CB3D74A004F",
|
||||
"checksum": "f218f3ad62984bf3bc97cb355cffa0476c29215bb2801ee3c3732c5da9576707"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DD6CB4DA5D1065",
|
||||
"checksum": "a4657585f204df6d148379c8689a521eb1bf2683cec75d67c1aa18efe23f7ee0"
|
||||
},
|
||||
"aarch64_windows": {
|
||||
"etag": "0x8DD6CB4973E7E2D",
|
||||
"checksum": "f1670266002bf5aa2567cf2866357ba443f570e57e1e12577d94d28b6ecf6d0d"
|
||||
}
|
||||
},
|
||||
"0.3.128": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DD6972CC645C5E",
|
||||
"checksum": "eceb9537fc55ffb707cb38d42cbaa7e890d1a24b83aea59659c8698df33af31c"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DD6973B42E5423",
|
||||
"checksum": "8875611a42ebeee4ef9376475af996e11882cc8c517a2d2fc480557646683f7b"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DD697378179597",
|
||||
"checksum": "357c162377948441e4c30357eab074a28034b0ee5fe086af80311d321e1d567d"
|
||||
},
|
||||
"aarch64_linux_musl": {
|
||||
"etag": "0x8DD6972CC8CEC7B",
|
||||
"checksum": "13ac75861baf46cf5b05fd931e31e19700d1136ecc7ad9117d4cb1aa6b14d0b5"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DD697342765547",
|
||||
"checksum": "21aa1fef51786aeea6e6fc0ee0e5cc12c2320a5702e42abe95fd9eaeb8cdd50d"
|
||||
},
|
||||
"aarch64_windows": {
|
||||
"etag": "0x8DD6973C97CE439",
|
||||
"checksum": "7efbfddba75041b770d72ed7c8a79db2243d65c97f5944d9f2e44fc0f4bdccbe"
|
||||
}
|
||||
},
|
||||
"0.3.127": {
|
||||
"x86_64_linux_musl": {
|
||||
|
||||
24
manifests/typos.json
generated
24
manifests/typos.json
generated
@@ -16,13 +16,31 @@
|
||||
},
|
||||
"license_markdown": "[MIT](https://github.com/crate-ci/typos/blob/master/LICENSE-MIT) OR [Apache-2.0](https://github.com/crate-ci/typos/blob/master/LICENSE-APACHE)",
|
||||
"latest": {
|
||||
"version": "1.30.2"
|
||||
"version": "1.30.3"
|
||||
},
|
||||
"1": {
|
||||
"version": "1.30.2"
|
||||
"version": "1.30.3"
|
||||
},
|
||||
"1.30": {
|
||||
"version": "1.30.2"
|
||||
"version": "1.30.3"
|
||||
},
|
||||
"1.30.3": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DD6B0F304A78B6",
|
||||
"checksum": "6ec16ceb87a612c8706437d665783a6194bf98119b245abe40e122c6a04feb94"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DD6B0F408165E9",
|
||||
"checksum": "9b00ca78d373eabaf0f9d06a9e9719aff6d336dcf5ab39bdc52c16eac978241e"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DD6B0F7183706C",
|
||||
"checksum": "008bbfe96ab4fbec343cc0a761367c90de42d6049f471f8c0feb1666bd319d02"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DD6B0F40621A3E",
|
||||
"checksum": "4a62e43c3474ab82818d19982f624b2201595de04737046091e1cde71ad74370"
|
||||
}
|
||||
},
|
||||
"1.30.2": {
|
||||
"x86_64_linux_musl": {
|
||||
|
||||
32
manifests/wash.json
generated
32
manifests/wash.json
generated
@@ -3,7 +3,37 @@
|
||||
"template": null,
|
||||
"license_markdown": "[Apache-2.0](https://github.com/wasmCloud/wasmCloud/blob/main/LICENSE)",
|
||||
"latest": {
|
||||
"version": "0.40.0"
|
||||
"version": "0.41.0"
|
||||
},
|
||||
"0.41": {
|
||||
"version": "0.41.0"
|
||||
},
|
||||
"0.41.0": {
|
||||
"x86_64_linux_musl": {
|
||||
"url": "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.41.0/wash-x86_64-unknown-linux-musl",
|
||||
"etag": "0x8DD68D8B94552DD",
|
||||
"checksum": "a9141c5f0d70d6e49d1dc5a0e9abc2d2036036d2a948863f91aa048e6dd5d79a"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"url": "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.41.0/wash-x86_64-apple-darwin",
|
||||
"etag": "0x8DD68D8B94D1256",
|
||||
"checksum": "5c306d83b97b052329257f99124d8959183195e3f1d32518ca3392abcc363258"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"url": "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.41.0/wash-x86_64-pc-windows-msvc.exe",
|
||||
"etag": "0x8DD68D8B946D7D6",
|
||||
"checksum": "dec5234008073f5f9a95e92551808ba19dcf17eab88b64b3b4ae6357bf49e490"
|
||||
},
|
||||
"aarch64_linux_musl": {
|
||||
"url": "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.41.0/wash-aarch64-unknown-linux-musl",
|
||||
"etag": "0x8DD68D8B9377FD1",
|
||||
"checksum": "208eb1e8a00fc287148600486c030f21dda49b85f4e5dd27b6054705b93bf5dd"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"url": "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.41.0/wash-aarch64-apple-darwin",
|
||||
"etag": "0x8DD68D8B93758E7",
|
||||
"checksum": "17bf805068a83ed09b1e22aa9a58fda1bb7f0cb1b6a61f5d02e5296165f1f20a"
|
||||
}
|
||||
},
|
||||
"0.40": {
|
||||
"version": "0.40.0"
|
||||
|
||||
@@ -14,7 +14,7 @@ cd -- "$(dirname -- "$0")"/..
|
||||
# - git 1.8+
|
||||
# - jq 1.6+
|
||||
# - npm (node 18+)
|
||||
# - python 3.5.3+
|
||||
# - python 3.6+ and pipx
|
||||
# - shfmt
|
||||
# - shellcheck
|
||||
# - cargo, rustfmt (if Rust code exists)
|
||||
@@ -69,7 +69,11 @@ check_diff() {
|
||||
should_fail=1
|
||||
fi
|
||||
else
|
||||
if ! git --no-pager diff --exit-code "$@" &>/dev/null; then
|
||||
local res
|
||||
res=$(git --no-pager diff --exit-code --name-only "$@" || true)
|
||||
if [[ -n "${res}" ]]; then
|
||||
warn "please commit changes made by formatter/generator if exists on the following files"
|
||||
print_fenced "${res}"$'\n'
|
||||
should_fail=1
|
||||
fi
|
||||
fi
|
||||
@@ -119,15 +123,6 @@ check_hidden() {
|
||||
sed_rhs_escape() {
|
||||
sed 's/\\/\\\\/g; s/\&/\\\&/g; s/\//\\\//g' <<<"$1"
|
||||
}
|
||||
venv_install_yq() {
|
||||
if [[ ! -e "${venv_bin}/yq${exe}" ]]; then
|
||||
if [[ ! -d .venv ]]; then
|
||||
"python${py_suffix}" -m venv .venv >&2
|
||||
fi
|
||||
info "installing yq to .venv using pip${py_suffix}"
|
||||
"${venv_bin}/pip${py_suffix}${exe}" install yq >&2
|
||||
fi
|
||||
}
|
||||
|
||||
if [[ $# -gt 0 ]]; then
|
||||
cat <<EOF
|
||||
@@ -137,19 +132,15 @@ EOF
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exe=''
|
||||
py_suffix=''
|
||||
if type -P python3 >/dev/null; then
|
||||
py_suffix=3
|
||||
fi
|
||||
venv_bin=.venv/bin
|
||||
yq() {
|
||||
venv_install_yq
|
||||
"${venv_bin}/yq${exe}" "$@"
|
||||
pipx run yq "$@"
|
||||
}
|
||||
tomlq() {
|
||||
venv_install_yq
|
||||
"${venv_bin}/tomlq${exe}" "$@"
|
||||
pipx run --spec yq tomlq "$@"
|
||||
}
|
||||
case "$(uname -s)" in
|
||||
Linux)
|
||||
@@ -187,8 +178,6 @@ case "$(uname -s)" in
|
||||
;;
|
||||
MINGW* | MSYS* | CYGWIN* | Windows_NT)
|
||||
ostype=windows
|
||||
exe=.exe
|
||||
venv_bin=.venv/Scripts
|
||||
if type -P jq >/dev/null; then
|
||||
# https://github.com/jqlang/jq/issues/1854
|
||||
_tmp=$(jq -r .a <<<'{}')
|
||||
@@ -200,12 +189,10 @@ case "$(uname -s)" in
|
||||
jq() { command jq "$@" | tr -d '\r'; }
|
||||
fi
|
||||
yq() {
|
||||
venv_install_yq
|
||||
"${venv_bin}/yq${exe}" "$@" | tr -d '\r'
|
||||
pipx run yq "$@" | tr -d '\r'
|
||||
}
|
||||
tomlq() {
|
||||
venv_install_yq
|
||||
"${venv_bin}/tomlq${exe}" "$@" | tr -d '\r'
|
||||
pipx run --spec yq tomlq "$@" | tr -d '\r'
|
||||
}
|
||||
fi
|
||||
fi
|
||||
@@ -219,7 +206,7 @@ exclude_from_ls_files=()
|
||||
# - `git submodule status` lists submodules. Use sed to remove the first character indicates status ( |+|-).
|
||||
# - `git ls-files --deleted` lists removed files.
|
||||
while IFS=$'\n' read -r line; do exclude_from_ls_files+=("${line}"); done < <({
|
||||
find . \! \( -name .git -prune \) \! \( -name target -prune \) \! \( -name .venv -prune \) \! \( -name tmp -prune \) -type l | cut -c3-
|
||||
find . \! \( -name .git -prune \) \! \( -name target -prune \) \! \( -name tmp -prune \) -type l | cut -c3-
|
||||
git submodule status | sed 's/^.//' | cut -d' ' -f2
|
||||
git ls-files --deleted
|
||||
} | LC_ALL=C sort -u)
|
||||
@@ -242,7 +229,7 @@ if [[ -n "$(ls_files '*.rs')" ]]; then
|
||||
info "checking Rust code style"
|
||||
check_config .rustfmt.toml "; consider adding with reference to https://github.com/taiki-e/cargo-hack/blob/HEAD/.rustfmt.toml"
|
||||
check_config .clippy.toml "; consider adding with reference to https://github.com/taiki-e/cargo-hack/blob/HEAD/.clippy.toml"
|
||||
if check_install cargo jq python3; then
|
||||
if check_install cargo jq python3 pipx; then
|
||||
# `cargo fmt` cannot recognize files not included in the current workspace and modules
|
||||
# defined inside macros, so run rustfmt directly.
|
||||
# We need to use nightly rustfmt because we use the unstable formatting options of rustfmt.
|
||||
@@ -597,7 +584,7 @@ if [[ -n "${res}" ]]; then
|
||||
print_fenced "${res}"$'\n'
|
||||
fi
|
||||
# TODO: chmod|chown
|
||||
res=$({ grep -En '(^|[^0-9A-Za-z\."'\''-])(basename|cat|cd|cp|dirname|ln|ls|mkdir|mv|pushd|rm|rmdir|tee|touch)( +-[0-9A-Za-z]+)* +[^<>\|-]' "${bash_files[@]}" || true; } | { grep -Ev '^[^ ]+: *(#|//)' || true; } | LC_ALL=C sort)
|
||||
res=$({ grep -En '(^|[^0-9A-Za-z\."'\''-])(basename|cat|cd|cp|dirname|ln|ls|mkdir|mv|pushd|rm|rmdir|tee|touch|kill|trap)( +-[0-9A-Za-z]+)* +[^<>\|-]' "${bash_files[@]}" || true; } | { grep -Ev '^[^ ]+: *(#|//)' || true; } | LC_ALL=C sort)
|
||||
if [[ -n "${res}" ]]; then
|
||||
error "use \`--\` before path(s): see https://github.com/koalaman/shellcheck/issues/2707 / https://github.com/koalaman/shellcheck/issues/2612 / https://github.com/koalaman/shellcheck/issues/2305 / https://github.com/koalaman/shellcheck/issues/2157 / https://github.com/koalaman/shellcheck/issues/2121 / https://github.com/koalaman/shellcheck/issues/314 for more"
|
||||
print_fenced "${res}"$'\n'
|
||||
@@ -800,7 +787,7 @@ elif check_install shellcheck; then
|
||||
# Exclude SC2096 due to the way the temporary script is created.
|
||||
shellcheck_exclude=SC2086,SC2096,SC2129
|
||||
info "running \`shellcheck --exclude ${shellcheck_exclude}\` for scripts in .github/workflows/*.yml and **/action.yml"
|
||||
if check_install jq python3; then
|
||||
if check_install jq python3 pipx; then
|
||||
shellcheck_for_gha() {
|
||||
local text=$1
|
||||
local shell=$2
|
||||
@@ -968,7 +955,7 @@ fi
|
||||
if [[ -f .cspell.json ]]; then
|
||||
info "spell checking"
|
||||
project_dictionary=.github/.cspell/project-dictionary.txt
|
||||
if check_install npm jq python3; then
|
||||
if check_install npm jq python3 pipx; then
|
||||
has_rust=''
|
||||
if [[ -n "$(ls_files '*Cargo.toml')" ]]; then
|
||||
has_rust=1
|
||||
@@ -991,9 +978,9 @@ if [[ -f .cspell.json ]]; then
|
||||
printf '%s\n' "${config_new}" >|.cspell.json
|
||||
dependencies_words=''
|
||||
if [[ -n "${has_rust}" ]]; then
|
||||
dependencies_words=$(npx -y cspell stdin --no-progress --no-summary --words-only --unique <<<"${dependencies}" || true)
|
||||
dependencies_words=$(npx -y cspell@8.17.5 stdin --no-progress --no-summary --words-only --unique <<<"${dependencies}" || true)
|
||||
fi
|
||||
all_words=$(ls_files | { grep -Fv "${project_dictionary}" || true; } | npx -y cspell --file-list stdin --no-progress --no-summary --words-only --unique || true)
|
||||
all_words=$(ls_files | { grep -Fv "${project_dictionary}" || true; } | npx -y cspell@8.17.5 --file-list stdin --no-progress --no-summary --words-only --unique || true)
|
||||
printf '%s\n' "${config_old}" >|.cspell.json
|
||||
trap -- 'printf >&2 "%s\n" "${0##*/}: trapped SIGINT"; exit 1' SIGINT
|
||||
cat >|.github/.cspell/rust-dependencies.txt <<EOF
|
||||
@@ -1013,11 +1000,11 @@ EOF
|
||||
error "you may want to mark .github/.cspell/rust-dependencies.txt linguist-generated"
|
||||
fi
|
||||
|
||||
info "running \`git ls-files | npx -y cspell --file-list stdin --no-progress --no-summary\`"
|
||||
if ! ls_files | npx -y cspell --file-list stdin --no-progress --no-summary; then
|
||||
info "running \`git ls-files | npx -y cspell@8.17.5 --file-list stdin --no-progress --no-summary\`"
|
||||
if ! ls_files | npx -y cspell@8.17.5 --file-list stdin --no-progress --no-summary; then
|
||||
error "spellcheck failed: please fix uses of below words or add to ${project_dictionary} if correct"
|
||||
printf '=======================================\n'
|
||||
{ ls_files | npx -y cspell --file-list stdin --no-progress --no-summary --words-only || true; } | sed "s/'s$//g" | LC_ALL=C sort -f -u
|
||||
{ ls_files | npx -y cspell@8.17.5 --file-list stdin --no-progress --no-summary --words-only || true; } | sed "s/'s$//g" | LC_ALL=C sort -f -u
|
||||
printf '=======================================\n\n'
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user