git: 2d729060f352 - stable/14 - Cirrus-CI: fix git usage by build user
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 07 Jan 2024 00:05:39 UTC
The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=2d729060f352cee1b476390d9610db842beb5e9f commit 2d729060f352cee1b476390d9610db842beb5e9f Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2023-12-05 19:03:35 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2024-01-06 23:27:10 +0000 Cirrus-CI: fix git usage by build user The git checkout it owned by root, but builds are run as "user". git refuses to operate in such an environment unless the directory is trusted so make "user" trust it. Fixes CI after 99b8c0c35b0fcc633649209621243d678a13542a. Sponsored by: DARPA Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D42903 (cherry picked from commit 663e4fa38fe835056b24058acc6e43e4a15a84c5) --- .cirrus.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index 1b25914c0062..317c5b28230d 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -97,9 +97,10 @@ task: - gpart show - df -m - pkg --version - - pw useradd user + - pw useradd -n user -m - mkdir -p /usr/obj/$(pwd -P) - chown user:user /usr/obj/$(pwd -P) + - su user -c "git config --global --add safe.directory $(pwd -P)" build_world_script: - su user -c "make -j$(sysctl -n hw.ncpu) ${EXTRA_MAKE_FLAGS} CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildworld"