From cefb53e32e814eb120b0e7d0405f7baa7bf8d8f1 Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Thu, 8 Feb 2024 04:12:37 -0500 Subject: [PATCH] Work around different ownership in container This handles the "dubious ownership" error for the Alpine Linux container using safe.directory as is done in the Cygwin job. Another approach may be to actually use a limited user account in the container, though, and that may be better, since I expect some of the rmtree tests in test_util.py to fail due to the root user being able to perform a delete operation the tests assume cannot be done. --- .github/workflows/alpine-test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/alpine-test.yml b/.github/workflows/alpine-test.yml index 991a8026b..6de18d306 100644 --- a/.github/workflows/alpine-test.yml +++ b/.github/workflows/alpine-test.yml @@ -22,6 +22,10 @@ jobs: with: fetch-depth: 0 + - name: Special configuration for Alpine Linux git + run: | + git config --global --add safe.directory "$(pwd)" + - name: Prepare this repo for tests run: | ./init-tests-after-clone.sh