1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-07-02 07:14:31 +02:00

ci: fix check-external-types recipe

This commit is contained in:
Rob Ede
2023-10-30 00:26:39 +00:00
parent f967562ac4
commit e9c2a0c318

View File

@ -14,18 +14,19 @@ doc-watch:
check-external-types-all: check-external-types-all:
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
for f in $(find . -mindepth 2 -maxdepth 2 -name Cargo.toml); do exit=0
echo "Checking for $f" for f in $(find . -mindepth 2 -maxdepth 2 -name Cargo.toml | grep -vE "\-codegen/|\-derive/|\-macros/"); do
just check-external-types-manifest "$f" || true if ! just check-external-types-manifest "$f"; then exit=1; fi
echo echo
echo echo
done done
exit $exit
# Check for unintentional external type exposure on all crates in workspace. # Check for unintentional external type exposure on all crates in workspace.
check-external-types-all-table: check-external-types-all-table:
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
for f in $(find . -mindepth 2 -maxdepth 2 -name Cargo.toml); do for f in $(find . -mindepth 2 -maxdepth 2 -name Cargo.toml | grep -vE "\-codegen/|\-derive/|\-macros/"); do
echo echo
echo "Checking for $f" echo "Checking for $f"
just check-external-types-manifest "$f" --output-format=markdown-table just check-external-types-manifest "$f" --output-format=markdown-table