Skip to content

Package via git: Allow ssh clone #278

@systemofapwne

Description

@systemofapwne

Right now, git upstream urls are limited to http(s), which is fine for publicly hosted git repos.
For private repos, one needs to supply credentials.

  • Either via http url like http://user:[email protected]/the_repo.git or http://[email protected]/the_repo.git (Note: I did not test this functionality with AURCache but I expect this to work).
  • Or via ssh keys: Valid git urls are then ssh://[email protected]/the_repo.git or just [email protected]:the_repo.git. One does need to supply an SSH key [1] however.

I propose, that the check at

if (!value.startsWith('http')) {
is either dropped or modified to support none http git upstream urls.

[1] This depends on rust's git2 library honoring ssh_config. One could then configure SSH keys and clone a repo via SSH.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions