From e9c2a0c318e0baca2723f79ef70ad6652f68c8c6 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 30 Oct 2023 00:26:39 +0000 Subject: [PATCH] ci: fix check-external-types recipe --- justfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index 1dbc0b89..3895e03d 100644 --- a/justfile +++ b/justfile @@ -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