Using dependencies within non-default ports #731
Replies: 4 comments
-
|
This is a known bug on which we are working here - #665 @edenfunf is leading the charge there, tagging you here |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the report! Confirmed — the port is stripped in two separate places: _normalize_ssh_protocol_url drops it for ssh:// URLs, and .hostname silently drops it for https:// URLs. Working on a fix that preserves the port in the host field for both cases (e.g. host = "myserver:8443"), so the lockfile naturally reflects the actual source URL without needing any extra fields. Will update #665 once ready. |
Beta Was this translation helpful? Give feedback.
-
|
Great, thanks for the answer. Feel free to ping me, when I can help somehow. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @mPokornyETM , this is now fixed via #665 . What landed Custom git ports on Quick example # apm.yml
dependencies:
apm:
- https://git.internal:8443/team/standards.git # string form
- git: https://git.internal:8443/team/repo.git # object form
ref: v1.0
- git: ssh://git@bitbucket.example.com:7999/project/repo.git # SSH with custom port
ref: mainThe lockfile records the port alongside the host: dependencies:
- repo_url: team/standards
host: git.internal
port: 8443
resolved_commit: <sha>
...Two things worth knowing
Thanks for the detailed report on the discussion — the HTTPS-port half of the PR. If you have any questions, feel free to discuss anytime. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All, At first big thanks to this tool. It is amazing. I used it in my open source tools (on github) to share the knowledge with other users and it works perfectly.
Now I am trying to using that in our Azure DevOps repository and I have some troubles.
When I understand it correctly this shall works:
But the apm install says "Failed to clone repository .... "
The interesting thing is this output:
As you can see (and this is not typo) the port is missing in the URL.
How shall I proceed in this case. It is a bug? Or do I something wrong.
Thx
Alot again
Beta Was this translation helpful? Give feedback.
All reactions