Closed mbarnach closed 4 years ago
The solution is to adapt your Package.swift
with the alias you've created before:
Before:
.package(url: "git@github.com:User/private_repository_dependency.git", from: "1.0.0"),
After:
.package(url: "git@private_repository_dependency:User/private_repository_dependency.git", from: "1.0.0"),
It will use the HostName
and the IdentityFile
specified by the Host
alias key.
Then you can have as many private dependency as you want!
Hi, I'm trying to build a Kitura project with the Swift-Buildpack on the IBM Cloud Foundry. My server is having multiple private repositories as dependencies (model, db, etc.), and even if I can access all of them individually, I cannot make it work with more than one at the time. I'm using the .ssh approach with all the repositories on Github. All the dependencies repository have their own deployment key, and I've double checked that I can access them with that key. The
config
file syntax is a bit obscure, and it could really be the issue. So far it looks like something like that:where
HostName
is always Github as the repositories are hosted there. andHost
is the name of the repository itself (the dependency name). I've tried with other names, with the same result.For reference, the error is always like that:
What am I doing wrong here? Thanks for your help.