Skip to content

add dependency from self hosted gitlab server using SSH checkout #129

Description

@Basti-Fantasti

How can I configure boss to fetch dependencies from my locally hosted gitlab server using SSH instead of HTTPS?
I have logged in with boss to my gitlab instance:

>boss login
Url to login (ex: github.com): gitlab.mygitlab.com
Use SSH(y or n): y
Path of ssh private key(C:\Users\MyUser\.ssh\id_rsa): c:\users\MyUser\.ssh\mygitlabkey
PassPhrase: ***

When I now try to install a dependency using the repo path as I would with git clone

boss install  [email protected]:mygroup/myrepo.git
[DEBUG] DEBUG MODE
[DEBUG]         Initializing delphi version
[DEBUG]         Executing migrations
[DEBUG]                 Update to version 1 already performed
[DEBUG]                 Update to version 2 already performed
[DEBUG]                 Update to version 3 already performed
[DEBUG]                 Update to version 5 already performed
[DEBUG]                 Update to version 6 already performed
[DEBUG]         Adjusting paths
[DEBUG]         Installing internal modules
[DEBUG]         Creating paths
[DEBUG] finish boss system initialization
[INFO ] Installing modules in project path
[INFO ] Building cache files...
[INFO ] Updating cache of dependency myrepo
[INFO ] Downloading dependency [email protected]:mygroup/myrepo
[ERROR]   Cloning into 'X:\git_local\boss_demo\modules\myrepo'...
[ERROR]   fatal: unable to access 'https://gitlab.mygitlab.com:mygroup/myrepo/': URL using bad/illegal format or missing URL
[ERROR] exit status 128

It can not be cloned because it's trying to clone using HTTPS instead of SSH which is not available on my github server.
How can this be changed?

Best regards
Bastian

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions