Matt Baer
16294edeb5
Fix tree and blob URLs for Gitea / Gogs
The directory structure for viewing branches and code on Gitea / Gogs is
different from GitHub. This fixes that, so the Source Code link on the
gopkg webpage works, as well as the URLs to lines in the source code
included in GoDoc.
5 anni fa
Matt Baer
6a7fdcb493
Redirect / to code.as fork
5 anni fa
Matt Baer
482a86ec75
Remove GitHub mentions in error messages
5 anni fa
Matt Baer
595f6e6a43
Find repos at /{repo}/go-{repo}
...instead of /go-{repo}/{repo}
This works better for us, as we have /writeas/go-writeas and
/snapas/go-snapas
5 anni fa
Matt Baer
c1f5d067a2
Add --src flag
Allows you to configure a different code hosting site besides
github.com, like one powered by Gitea or Gogs.
5 anni fa
Gustavo Niemeyer
4a378b52d4
Fix redirection logic.
6 anni fa
Gustavo Niemeyer
f9c1285817
Add redirect to handle improper fsnotify rename.
For details see:
https://github.com/go-fsnotify/fsnotify/issues/1
6 anni fa
Gustavo Niemeyer
52a51a4957
Use new ForceRSA option and drop custom acme patch.
6 anni fa
Gustavo Niemeyer
d396a77f10
Proxy upload pack, due to changes in git itself.
6 anni fa
Gustavo Niemeyer
c70d35213a
Let's Encrypt support.
7 anni fa
alexkappa
44d1b902ee
renamed github flag to username based on feedback
9 anni fa
Gustavo Niemeyer
224efbc020
Add some tests for reference changes.
9 anni fa
Gustavo Niemeyer
f99b4a1b2a
Handle symref capability and repos with no master.
Besides enabling support for repositories with no master branch
defined, this will also make a bare "git clone" on a gopkg.in
repository create a local branch with the proper content and name.
Fixes #20 .
9 anni fa
Gustavo Niemeyer
cac38eedcd
Support vN-unstable branches and tags.
Fixes #25 .
9 anni fa
Gary Burd
1249271eb3
Add support for the go-source meta tag.
See https://github.com/golang/gddo/pull/212 for the corresponding
change to godoc.org.
9 anni fa
Nathan Youngman
06fff2f2c8
add a few comments
9 anni fa
Gustavo Niemeyer
1a40e098f5
Allow dots in subpackages as well.
9 anni fa
alexkappa
76c15c68ce
Added flag for github username.
9 anni fa
alexkappa
8f273bbc21
Adding a domain flag to set the domain name of the app.
9 anni fa
Gustavo Niemeyer
adbf86173c
Add timeouts for client http connections.
9 anni fa
GeertJohan
d0adad6501
Rename field Repo.PackageName to Repo.Name
10 anni fa
GeertJohan
51bc41a128
Update regexp patternNew to allow dot in package name
10 anni fa
Gustavo Niemeyer
966f02619c
Peel-off annotated tags.
10 anni fa
Gustavo Niemeyer
a202dc02e0
Minor polishing before the release.
- Improve Repo methods and fields.
- Bring back documentation redirection on URL fragments.
- Fix hrefs in version map so they point to the SubPath
and take OldFormat into account.
10 anni fa
GeertJohan
8f69a030ee
Change regexp to allow uppercase letters in username/organization name
10 anni fa
GeertJohan
94cfe607cb
Remove dispensable var
10 anni fa
GeertJohan
aa591d48ee
Remove old code
10 anni fa
GeertJohan
af91d449d3
inline goget var
10 anni fa
GeertJohan
4dccdf9073
Drop versioned name feature
10 anni fa
GeertJohan
485a1b25b0
Fix "typo"
10 anni fa
GeertJohan
f2f6cbda4e
Add interface page.
Add VersionList ([]Version) implementing sort.Interface.
Changed hackedRefs to also return a VersionList holding all valid versions for a repo.
Change Repo struct to hold parts and added methods to construct useful strings from those parts.
Comment out the whole nameHasversion() thingie. It was noted as obsolte made it harder to create clean Repo struct.
10 anni fa
GeertJohan
ca4ee5569f
Add missing return statement.
Caused a panic when repo could not be reached.
10 anni fa
GeertJohan
d25e20e4a7
Revert "Send nice error when version number is out of range"
This reverts commit f4151cb744
.
10 anni fa
GeertJohan
f4151cb744
Send nice error when version number is out of range
10 anni fa
GeertJohan
d3f8a12f51
Fix missing return statement
10 anni fa
Gustavo Niemeyer
c1a41612fe
godoc.org is down; redirect to labix.org instead.
10 anni fa
Gustavo Niemeyer
3334c06823
New versioning pattern.
10 anni fa
Gustavo Niemeyer
e688f13d79
Improved version matching.
10 anni fa
Gustavo Niemeyer
95414b2945
Import into repository.
10 anni fa