PHP Composer not pulling from private packages from same server.
We are using GitLab and GitLab CI Runner for our PHP based projects. We also use Composer for the dependency management. However, one of our projects is dependent on a several other projects we have as well...
While Composer is installing dependencies we get the following error:
- Installing <some-package-from-github> (<package version>)
Downloading: Connecting... Downloading: 0% Downloading: 5% Downloading: 10% Downloading: 15% Downloading: 20% Downloading: 25% Downloading: 30% Downloading: 35% Downloading: 40% Downloading: 45% Downloading: 50% Downloading: 55% Downloading: 60% Downloading: 65% Downloading: 70% Downloading: 75% Downloading: 80% Downloading: 85% Downloading: 90% Downloading: 95% Downloading: 100% Downloading: 100%
- Installing <package-from-our-gitlab> (<package version>)
Cloning a3154c35e1271ef916aded8da21c796906648ced
[RuntimeException]
Failed to execute git clone --no-checkout 'git@<our host>:<our package>.git' '/builds/<our project>/vendor/<our package>' && cd '/builds/<our project>/vendor/<our package>' && git remote add composer 'git@<our server>:<our package>.git' && git fetch composer
Cloning into '/builds/<our project>/vendor/<our package>'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
We are using docker as an executor.
How can we make Composer access these packages?