Installation of Python dependency from private Git...
# general
m
Installation of Python dependency from private Git repository inside
docker_environment
Having followed instructions in Pants version control documentation, installation outside a
docker_environment
is working successfully, however when using a docker environment and the following settings, it is failing. pants.toml
Copy code
...

[subprocess-environment]
env_vars.add = [
  "SSH_AUTH_SOCK"
]

[docker]
env_vars = [
  "SSH_AUTH_SOCK"
]

[environments-preview.names]
pytest_env = "//docker/base_emr_serverless:tests-env-base-emr-7.8.0-python-3.11"
docker/base_emr_serverless/BUILD
Copy code
docker_environment(
  name="tests-env-base-emr-7.8.0-python-3.11",
  image="<http://851725234266.dkr.ecr.us-east-2.amazonaws.com/thirdparty/base-emr-7.8.0-python-3.11:tests-0.1.0-temp-pearl-api|851725234266.dkr.ecr.us-east-2.amazonaws.com/thirdparty/base-emr-7.8.0-python-3.11:tests-0.1.0-temp-pearl-api>"
)
error during
pants test
Copy code
pip: note: This error originates from a subprocess, and is likely not a problem with pip.
    pip:    Running command git clone --filter=blob:none --quiet 'ssh://****@github.com/PearlHealth/pearl-api.git' /pants-named-caches/pex_root/pip/1/24.2/pip_cache/.tmp/pip-download-uhu5q7ca/pearl-api_74caf017c29e4da7a7141277ba4d88d9
    pip:    Host key verification failed.
    pip:    fatal: Could not read from remote repository.
    pip:    Please make sure you have the correct access rights
    pip:    and the repository exists.
    pip:    ERROR: git clone --filter=blob:none --quiet 'ssh://****@github.com/PearlHealth/pearl-api.git' /pants-named-caches/pex_root/pip/1/24.2/pip_cache/.tmp/pip-download-uhu5q7ca/pearl-api_74caf017c29e4da7a7141277ba4d88d9 exited with 128
Somewhere the passthrough of the SSH agent is failing but I'm not sure where.
Are there any args I can override to make sure the SSH socket gets passed to the right place?