boss icon indicating copy to clipboard operation
boss copied to clipboard

Can not clone Repository via SSH from gitlab

Open Basti-Fantasti opened this issue 1 year ago • 2 comments

I have logged in to my own hosted gitlab and try to download / install a dependency in a boss test project

But when I try to add the repository in the format:

boss install [email protected]:delphi/libraries/mylib.git

I get the following error:

[INFO ] Installing modules in project path
[INFO ] Building cache files...
[INFO ] Updating cache of dependency gtrlib
[INFO ] Downloading dependency [email protected]:delphi/libraries/mylib
[ERROR]   Cloning into 'X:\git_local\bosstest\modules\mylib'...
[ERROR]   fatal: unable to access 'https://mygitlab.domain.de:delphi/libraries/mylib/': URL rejected: Port number was not a decimal number between 0 and 65535
[ERROR] exit status 128

Why does it try to map the given repository path to a https:// path? Is there another syntax on how to pass wht git@xxx/bla.git repository format?

Cloning the repositories manually on the command line using git directly works like a charm using ssh

Basti-Fantasti avatar Jul 10 '24 14:07 Basti-Fantasti

I see that in the utils.go > EnsureDependencyOfArgs function the .git suffix is trimmed. But why is that? the dependendy as given above should be valid.

EDIT: and why is the https:// prefix enforced? For the repository structure as shown above this is not needed

Basti-Fantasti avatar Jul 10 '24 19:07 Basti-Fantasti

I modified the original code to accept this kind of repository name. Therefore I've modified the core/installer/utils.go models/dep.go

I forked the repo and pushed the changes accordingly

Basti-Fantasti avatar Jul 10 '24 20:07 Basti-Fantasti