We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b9585b commit 457a7e7Copy full SHA for 457a7e7
.github/scripts/check-ocaml-refs.sh
@@ -64,7 +64,15 @@ echo "Current OCaml commit: ${CURRENT_COMMIT}"
64
echo "Search OCaml references in Rust code with ripgrep from ${RUST_ROOT}..."
65
cd "${RUST_ROOT}"
66
echo "Running rg -l to find files..."
67
-rg -l "^/// OCaml reference:" --type rust
+OUTPUT=$(rg -l "^/// OCaml reference:" --type rust 2> /tmp/rg_error.log) || true
68
+if [ $? -ne 0 ] && [ -s /tmp/rg_error.log ];
69
+then
70
+ echo "Error running ripgrep:"
71
+ echo $OUTPUT
72
+ cat /tmp/rg_error.log
73
+ rm -f /tmp/rg_error.log
74
+ exit 1
75
+fi
76
echo "Success"
77
RUST_FILES=$(rg -l "^/// OCaml reference:" --type rust || true)
78
echo "${RUST_FILES}"
0 commit comments