<#18563 pantsd does not adhere to global Git confi...
# github-notifications
c
#18563 pantsd does not adhere to global Git config. Issue created by voyc-jean Describe the bug It seems as though Pants isn't utilising my
~/.gitconfig
. I have a rule to add my repo as a safe directory (
git config --global --add safe.directory '/my/git/repo'
), but when I run Pants (./pants --changed-since 1.2.3 ) I'm receiving the following error:
Copy code
[INFO] No git repository at /my/git/repo: GitBinaryException("fatal: detected dubious ownership in repository at '/my/git/repo'\nTo add an exception for this directory, call:\n\n\tgit config --global --add safe.directory /my/git/repo\n")
Full debug output: ``` bash-4.2# whoami root bash-4.2# ./pants --print-stacktrace -ldebug --changed-since=$PREVIOUS_TAG package 121823.31 [DEBUG] acquiring lock: <pants.pantsd.lock.OwnerPrintingInterProcessFileLock object at 0x7fc0fb817e20> 121823.31 [DEBUG] terminating pantsd 121823.31 [DEBUG] sending signal 15 to pid 882 121823.61 [DEBUG] successfully terminated pid 882 121823.61 [DEBUG] purging metadata directory: /codebuild/output/srcDownload/src/.pids/ea48444d5cc6/pantsd 121823.61 [DEBUG] Launching pantsd 121823.61 [DEBUG] purging metadata directory: /codebuild/output/srcDownload/src/.pids/ea48444d5cc6/pantsd 121823.62 [DEBUG] pantsd command is: PANTS_DAEMON_ENTRYPOINT=pants.pantsd.pants_daemon:launch_new_pantsd_instance PYTHONPATH=/root/.cache/pants/setup/bootstrap-Linux-x86_64/pants.qvoR5o/install/bin/root/.pyenv/versions/3.9.16/lib/python39.zip/root/.pyenv/versions/3.9.16/lib/python3.9/root/.pyenv/versions/3.9.16/lib/python3.9/lib dynload/root/.cache/pants/setup/bootstrap-Linux-x86_64/2.14.1_py39/lib/python3.9/site-packages /root/.cache/pants/setup/bootstrap-Linux-x86_64/2.14.1_py39/bin/python /root/.cache/pants/setup/bootstrap-Linux-x86_64/2.14.1_py39/bin/pants --pants-bin-name=./pants --pants-version=2.14.1 --print-stacktrace -ldebug --changed-since=./codebuild/helpers/get_previous_tag.sh package 121825.72 [DEBUG] pantsd is running at pid 2679, pailgun port is 37293 121825.72 [DEBUG] releasing lock: <pants.pantsd.lock.OwnerPrintingInterProcessFileLock object at 0x7fc0fb817e20> 121825.72 [DEBUG] Connecting to pantsd on port 37293 121825.72 [DEBUG] Connecting to pantsd on port 37293 attempt 1/3 121825.72 [DEBUG] Connected to pantsd 121825.75 [DEBUG] Launching 1 roots (poll=false). 121825.79 [DEBUG] computed 1 nodes in 0.034156 seconds. there are 7 total nodes. 121826.01 [INFO] Initializing scheduler... 121826.03 [DEBUG] File handle limit is: 1048576 121826.05 [DEBUG] Using [cache::CommandRunner { inner: bounded::CommandRunner { inner: nailgun::CommandRunner { inner: local::CommandRunner { .. }, .. }, .. }, .. }, cache::CommandRunner { inner: bounded::CommandRunner { inner: nailgun::CommandRunner { inner: local::CommandRunner { .. }, .. }, .. }, .. }] for process execution. 121826.19 [DEBUG] Changes to /root/.cache/pants/setup/bootstrap-Linux-x86_64/pants.qvoR5o/install/bin, outside of the buildroot, will not be invalidated. 121826.19 [DEBUG] Changes to /root/.cache/pants/setup/bootstrap-Linux-x86_64/pants.qvoR5o/install/bin, outside of the buildroot, will not be invalidated. 121826.19 [DEBUG] Changes to /root/.pyenv/versions/3.9.16/lib/python39.zip, outside of the buildroot, will not be invalidated. 121826.19 [DEBUG] Changes to /root/.pyenv/versions/3.9.16/lib/python3.9, outside of the buildroot, will not be invalidated. 121826.19 [DEBUG] Changes to /root/.pyenv/versions/3.9.16/lib/python3.9/lib-dynload, outside of the buildroot, will not be invalidated. 121826.19 [DEBUG] Changes to /root/.cache/pants/setup/bootstrap-Linux-x86_64/2.14.1_py39/lib/python3.9/site-packages, outside of the buildroot, will not be invalidated. 121826.19 [DEBUG] setting up service <pants.pantsd.service.scheduler_service.SchedulerService object at 0x7f71c2ce5e80> 121826.19 [DEBUG] setting up service <pants.pantsd.service.store_gc_service.StoreGCService object at 0x7f71c3255370> 121826.19 [DEBUG] starting service <pants.pantsd.service.scheduler_service.SchedulerService object at 0x7f71c2ce5e80> 121826.19 [DEBUG] starting service <pants.pantsd.service.store_gc_service.StoreGCService object at 0x7f71c3255370> 121826.20 [INFO] Scheduler initialized. 121826.20 [DEBUG] Launching 1 roots (poll=false). 121826.20 [DEBUG] computed 1 nodes in 0.000349 seconds. there are 7 total nodes. 121826.26 [DEBUG] specs are: Specs(includes=RawSpecs(description_of_origin='CLI arguments', address_literals=(), file_literals=(), file_globs=(), dir_literals=(), dir_globs=(), recursive_globs=(), ancestor_globs=(), unmatched_glob_behavior=<GlobMatchErrorBehavior.error: 'error'>, filter_by_global_options=True, from_change_detection=False), ignores=RawSpecs(description_of_origin='CLI arguments', address_literals=(), file_literals=(), file_globs=(), dir_literals=(), dir_globs=(), recursive_globs=(), ancestor_globs=(), unmatched_glob_behavior=<GlobMatchErrorBehavior.error: 'error'>, filter_by_global_options=False, from_change_detection=False)) 121826.26 [DEBUG] changed_options are: ChangedOptions(since='./codebuild/helpers/get_previous_tag.sh', diffspec=None, dependees=<DependeesOption.NONE: 'none'>) 121826.26 [DEBUG] Launching 1 roots (poll=false). 121826.26 [DEBUG] Completed: acquire_command_runner_slot 121826.26 [DEBUG] Running Searching for
bash
on PATH=/usr/bin/bin/usr/local/bin under semaphore with concurrency id: 1, and concurrency: 1 121826.26 [DEBUG] Completed: setup_sandbox 121826.26 [DEBUG] Obtaining exclusive spawn lock for process since we materialized its executable Some("./find_binary.sh"). 121826.27 [DEBUG] spawned local process as Some(2706) for Process { argv: ["./find_binary.sh", "bash"], env: {"PATH": "/usr/bin/bin/usr/local/bin"}, working_directory: None, input_digests: InputDigests { complete: DirectoryDigest { digest: Digest { hash: Fingerprint<fc33a6ab65993fa57d52edbff44d8a8a89faa2ec0669950d238b481da5caf15c>, size_bytes: 91 }, tree: "Some(..)" }, nailgun: DirectoryDigest { digest: Digest { hash: Fingerprint<e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, size_bytes: 0 }, tree: "Some(..)" }, input_files: DirectoryDigest { digest: Digest { hash: Fingerprint<fc33a6ab65993fa57d52edbff44d8a8a89faa2ec0669950d238b481da5caf15c>, size_bytes: 91 }, tree: "Some(..)" }, immutable_inputs: {}, use_nailgun: {} }, output_files: {}, output_directories: {}, timeout: None, execution_slot_variable: None, concurrency_available: 0, description: "Searching for
bash
on PATH=/usr/bin/bin/usr/local/bin", level: Debug, append_only_caches: {}, jdk_home: None, platform_constraint: None, cache_scope: PerRestartSuccessful, remote_cache_speculation_delay: 0ns } 121826.27 [DEBUG] Completed: Searching for
bash
on PATH=/usr/bin/bin/usr/local/bin 121826.27 [DEBUG] Completed: Scheduling: Searching for
bash
on PATH=/usr/bin/bin/usr/local/bin 121826.27 [DEBUG] Completed: acquire_command_runner_slot 121826.27 [DEBUG] Completed: acquire_command_runner_slot 121826.27 [DEBUG] Running Test binary /usr/bin/bash. under semaphore with concurrency id: 2, and concurrency: 1 121826.27 [DEBUG] Running Test binary /bin/bash. under semaphore with concurrency id: 3, and concurrency: 1 121826.28 [DEBUG] Completed: setup_sandbox 121826.28 [DEBUG] Completed: setup_sandbox 121826.28 [DEBUG] spawned local process as Some(2707) for Process { argv: ["/usr/bin/bash", "--version"], env: {}, working_directory: None, input_digests: InputDigests { complete: DirectoryDigest { digest: Digest { hash: Fingerprint<e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, size_bytes: 0 }, tree: "Some(..)" }, nailgun: DirectoryDigest { digest: Digest { hash: Fingerprint<e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, size_bytes: 0 }, tree: "Some(..)" }, input_files: DirectoryDigest { digest: Digest { hash: Fingerprint<e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855&… pantsbuild/pants