The git checkout it owned by root, but builds are run as "user". git
refuses to operating in such an environment unless the directory is
trusted.
Fixes CI after 99b8c0c35b0fcc633649209621243d678a13542a.
Sponsored by: DARPA
Differential D42903
Cirrus-CI: let build user run git brooks on Dec 5 2023, 1:41 AM. Authored by Tags None Referenced Files
Details The git checkout it owned by root, but builds are run as "user". git Fixes CI after 99b8c0c35b0fcc633649209621243d678a13542a. Sponsored by: DARPA
Diff Detail
Event TimelineComment Actions This commit message is a lie in that it only exposes the next problem https://cirrus-ci.com/task/5157804504252416?logs=package#L4435 Comment Actions https://cirrus-ci.com/task/5157804504252416?logs=setup#L15 states that pkg version is 1.20.8, so @override_prefix is not yet available (starting on 1.20.9):
xxx_upgrade_pkg_script: - fetch http://pkg.freebsd.org/FreeBSD:13:amd64/latest/All/pkg-1.20.9.pkg - pkg install -y ./pkg-1.20.9.pkg - rm -f pkg-1.20.9.pkg
Comment Actions I've chosen to retain the git config change and not do chown of the source tree (only one of them is required). IMO it's useful to test with a read-only tree to since any such write is a bug in the normal build process. I've also created D42903 with the pkg fix to make it more revertible and plan to commit it with Author: Jose Luis Duran <jlduran@gmail.com> Comment Actions Yes!
Don't worry much about my name/authorship... Thank you! |