tools: Update tidy.sh

This commit is contained in:
Taiki Endo
2024-06-04 03:26:03 +09:00
parent 544b987e85
commit 2c14471598

View File

@@ -178,7 +178,7 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
publish=$(jq <<<"${root_pkg}" -r '.publish')
# Publishing is unrestricted if null, and forbidden if an empty array.
if [[ "${publish}" != "[]" ]]; then
exclude=$(tomlq -r '.package.exclude[]' Cargo.toml)
exclude=$(venv tomlq -r '.package.exclude[]' Cargo.toml)
if ! grep <<<"${exclude}" -Eq '^/\.\*$'; then
error "top-level Cargo.toml of non-virtual workspace should have 'exclude' field with \"/.*\""
fi