From a69aeb33ebd2522a84df5dda34104643a2d9351d Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sat, 30 Mar 2024 07:51:53 +0100 Subject: [PATCH] ci: work around internal vfmt errors --- .github/workflows/analyzer_tests.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/analyzer_tests.yml b/.github/workflows/analyzer_tests.yml index d15a24ca..525e4769 100644 --- a/.github/workflows/analyzer_tests.yml +++ b/.github/workflows/analyzer_tests.yml @@ -66,4 +66,12 @@ jobs: run: v .github/workflows/version_test.vv - name: Verify formatting - run: v fmt -verify -diff . + run: | + set +e + v fmt -c . + exit_code=$? + if [[ $exit_code -ne 0 && $exit_code -ne 5 ]]; then + # Don't fail on on internal errors + v fmt -verify . + exit 1 + fi