Opened 2 years ago

Closed 13 months ago

#6874 closed defect (rejected)

Cannot configure SSH URL for building from repos

Reported by: greiner Assignee:
Priority: Unknown Milestone:
Module: Automation Keywords:
Cc: tlucas, wspee, erikvold, sebastian Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):



Ubuntu 18.04

How to reproduce

  1. Change one of the paths in the _root configuration variable in a "dependencies" file to use SSH instead of HTTPS
  2. Attempt to resolve dependencies

Observed behaviour

Build fails and error is shown (see below).

Example error uses "REPO" as placeholder for the dependency name and "OUTPUT" for the working directory.

fatal: repository 'REPO.git' does not exist
Traceback (most recent call last):
  File "OUTPUT/", line 450, in <module>
  File "OUTPUT/", line 389, in resolve_deps
    _root.get(vcs, ''), source)
  File "OUTPUT/", line 329, in ensure_repo
    repo_types[type].clone(url, target)
  File "OUTPUT/", line 105, in clone
    subprocess.check_call(['git', 'clone', '--quiet', source, target])
  File "/usr/lib/python2.7/", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['git', 'clone', '--quiet', u'REPO.git', u'OUTPUT/REPO']' returned non-zero exit status 128

Expected behaviour

Build succeeds and no error is shown.

Further information

Upon further investigation I found that calling

urlparse.urljoin("ssh://", "foo")

will return "foo"

urlparse.urljoin("", "foo")

will return "".

Change History (3)

comment:1 Changed 23 months ago by erikvold

  • Cc erikvold added

I think we are aiming to remove this dependency right? so perhaps we can close this, since we probably shouldn't work on it.

comment:2 Changed 13 months ago by sebastian

  • Cc sebastian added

Is this still relevant? We plan to discontinue buildtools and With the move towards GitLab, we will eventually switch to Git Submodules.

comment:3 Changed 13 months ago by greiner

  • Resolution set to rejected
  • Status changed from new to closed

I'm fine with closing this in favor of a more established dependency management.

Note: See TracTickets for help on using tickets.