bitter-ability-32190
06/02/2022, 12:51 AM22:21:50.71 [ERROR] 1 Exception encountered:
AssertionError:
22:21:50.77 [INFO] Canceled: Building pylint.pex from 3rdparty/python/lockfiles/pylint.txt
Which turned out with -ldebug
to be
22:38:30.63 [INFO] No git repository at /home/firstnamelastname/work/repo: GitException("fatal: unsafe repository ('/home/firstnamelastname/work/repo' is owned by someone else)\nTo add an exception for this directory, call:\n\n\tgit config --global --add safe.directory /home/firstnamelastname/work/repo\n")
@happy-kitchen-89482 is this still an issue in the new Git code? Or should I file an issue and fix?happy-kitchen-89482
06/02/2022, 6:23 AMsetuptools_scm
, which itself delegates to git
CLI. So I don't think it's relevant? But why is git being invoked at all in this run? Is that user using --changed
flags?bitter-ability-32190
06/02/2022, 9:53 AMclean-city-64472
06/02/2022, 3:15 PMno-pantsd
so I believe it’s something to do with the user running the process not having access to the repo…no-pantsd
I had to run this (also just to get anything in git to work)
git config --global --add safe.directory /repodir
config --global
seems to make entries in ~/.gitconfig
so it doesn’t really seem to be global - more like user level config./etc/gitconfig
in the format of ~/.gitconfig
and use that to mark the repo safe globally (in the true sense). That resolves the issue for me.witty-crayon-22786
06/02/2022, 4:44 PMgit
(with an explicitly specified workdir?) or is this easily reproducible outside of pants?bitter-ability-32190
06/02/2022, 7:00 PMNormal git commands work fine, it's just a pants issue.From a colleague. Seeing if restarting the daemon works
clean-city-64472
06/02/2022, 9:04 PMgit
commands worked in CWD
and when running commands with -no-pantsd
. I only saw the error when using pantsd
witty-crayon-22786
06/02/2022, 9:06 PMclean-city-64472
06/02/2022, 9:09 PMbitter-ability-32190
06/02/2022, 9:09 PMclean-city-64472
06/02/2022, 9:10 PM/etc/gitconfig
to verify the fixwitty-crayon-22786
06/02/2022, 9:11 PMbitter-ability-32190
06/02/2022, 9:11 PMwitty-crayon-22786
06/02/2022, 9:11 PMbitter-ability-32190
06/02/2022, 9:12 PMclean-city-64472
06/02/2022, 9:20 PM2.9.2
but was also happening on 2.9.0rc3
witty-crayon-22786
06/02/2022, 9:20 PMbitter-ability-32190
06/02/2022, 9:21 PMwitty-crayon-22786
06/02/2022, 9:21 PM