Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not clone Repository via SSH from gitlab #169

Open
Basti-Fantasti opened this issue Jul 10, 2024 · 2 comments
Open

Can not clone Repository via SSH from gitlab #169

Basti-Fantasti opened this issue Jul 10, 2024 · 2 comments

Comments

@Basti-Fantasti
Copy link

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
Copy link
Author

Basti-Fantasti commented Jul 10, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant