The dependency mirroring is not working as I expected.
$ TEMP=$(mktemp -d)
$ cd $TEMP
$ export CI_SERVER_HOST=gitlab.local
$ export CI_JOB_TOKEN=deadbeef1234
$ git clone https://lovelettr:$CI_JOB_TOKEN@$CI_SERVER_HOST/path/parent-repo.git
$ cd parent-repo
$ swift package config set-mirror --package-url git@$CI_SERVER_HOST:path/dependent.git --mirror-url https://lovelettr:$CI_JOB_TOKEN@$CI_SERVER_HOST/path/dependent.git
$ swift build
Fetching git@gitlab.local:path/dependent.git
error: failed to clone; Cloning into bare repository '/private/var/folders/s8/ybwgdx793dv67p21t_mxkqx00000z8/T/tmp.z7w70432/parent-repo/.build/repositories/dependent-cdaa868b'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I would have expected swift package config set-mirror
to change the fetching. It is still using Git over SSH even though I set a mirror to Git over HTTPS.
What am I missing?