AUR web interface

Tasklist

FS#45260 - [AUR 4.0] Allow simpler clone URLs

Attached to Project: AUR web interface
Opened by jck (jck) - Monday, 08 June 2015, 11:57 GMT
Last edited by Lukas Fleischer (lfleischer) - Friday, 12 June 2015, 14:58 GMT
Task Type Feature Request
Category Backend
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Low
Priority Normal
Reported Version 3.5.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Github, and other services such as gogs.io allow simpler clone URLs. For ssh clones, the trailing slash and .git suffix are optional. For https clones, the .git suffix is optional.

For example, these are valid clone URLs:
git@github.com:jck/pkgbuilds
git@github.com:jck/pkgbuilds.git
https://github.com/jck/pkgbuilds
https://github.com/jck/pkgbuilds.git


For aur4, these URLs are invalid:
aur@aur4.archlinux.org:yaourt
aur@aur4.archlinux.org:yaourt.git
aur@aur4.archlinux.org:/yaourt
https://aur4.archlinux.org/yaourt

It would be nice if AUR4 could also support such URLs
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Friday, 12 June 2015, 14:58 GMT
Reason for closing:  Implemented
Additional comments about closing:  Implemented in 4.0.0-rc4.
Comment by Lukas Fleischer (lfleischer) - Tuesday, 09 June 2015, 07:17 GMT
The most interesting part seems to be making the ".git" suffix for HTTPs clones optional. However, that would result in overlapping namespaces, e.g. when a package is called "login" or "packages".
Comment by Johannes Löthberg (demize) - Friday, 12 June 2015, 12:41 GMT
(Slash-less SSH URLs now work at least)

The two solutions to overlapping names I can think of are:

* Use a new subdomain for Git, eg git.archlinux.org
* Use a new 'subdirectory' in the url, eg https://aur4.archlinux.org/git/foobar
Comment by Lukas Fleischer (lfleischer) - Friday, 12 June 2015, 14:07 GMT
Both solutions require increasing the length of the URL by 4 characters, allowing users to save 4 (different) characters when typing the clone URL. That doesn't sound very sensible to me, especially since everybody who still uses the ".git" suffix now needs to type more. Am I missing anything?
Comment by Lukas Fleischer (lfleischer) - Friday, 12 June 2015, 14:58 GMT
Found a nice way to implement this. Done.

Loading...