From c373ca9647d0d452fc72d631698830355d22b32b Mon Sep 17 00:00:00 2001 From: nirenjan Date: Wed, 22 Apr 2026 09:34:12 -0700 Subject: [PATCH] build: Fix meson dist issue inside containers --- .github/scripts/build-and-test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/scripts/build-and-test.sh b/.github/scripts/build-and-test.sh index 57dab29..891d7af 100755 --- a/.github/scripts/build-and-test.sh +++ b/.github/scripts/build-and-test.sh @@ -9,7 +9,9 @@ rm -rf "$BUILDDIR" # Handle the meson dist failure in CI if [[ "$GITHUB_ACTIONS" == "true" ]] then - git config --global --add safe.directory '*' + # If in a container, then use the system directory + git config --system --add safe.directory '*' || \ + git config --global --add safe.directory '*' fi meson setup -Dprefix=/usr -Dsysconfdir=/etc -Dlocalstatedir=/var -Dnls=enabled "$BUILDDIR"