Skip to content

Commit

Permalink
ci: fix check-external-types recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Oct 30, 2023
1 parent f967562 commit e9c2a0c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@ doc-watch:
check-external-types-all:
#!/usr/bin/env bash
set -euo pipefail
for f in $(find . -mindepth 2 -maxdepth 2 -name Cargo.toml); do
echo "Checking for $f"
just check-external-types-manifest "$f" || true
exit=0
for f in $(find . -mindepth 2 -maxdepth 2 -name Cargo.toml | grep -vE "\-codegen/|\-derive/|\-macros/"); do
if ! just check-external-types-manifest "$f"; then exit=1; fi
echo
echo
done
exit $exit

# Check for unintentional external type exposure on all crates in workspace.
check-external-types-all-table:
#!/usr/bin/env bash
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 "Checking for $f"
just check-external-types-manifest "$f" --output-format=markdown-table
Expand Down

0 comments on commit e9c2a0c

Please sign in to comment.