-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/pkgsite: linking to source code in GitHub Enterprise Server #48542
Comments
Sounds reasonable. |
Can you give me a URL to a file for testing? (We will hit it once and then record it for future tests, so the traffic will be minimal.) |
Change https://golang.org/cl/351276 mentions this issue: |
@jba Sorry, we don’t expose our GitHub Enterprise instance to the world, nor do we expose our Pkg.go.dev instance, because of corporate reasons. 🙁 However, I have applied your patch and used I can confirm that the Repository URL is now being properly detected. 🎉 |
These URLs are used by some GitHub Enterprise Server customers. For golang/go#48542 Change-Id: Iace7e9db14fcb776669c2ae581a7508c188c1aca Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/351276 Trust: Jonathan Amsterdam <[email protected]> Run-TryBot: Jonathan Amsterdam <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]>
🎉 |
#40477 suggests that we ask for new
internal.source.patterns
to support new code hosts.We are using GitHub Enterprise Server which is hosted in a
github.*
domain. Currently, pkgsite is unable to resolve code from these repos because it only matchesgithub.com
: https://go.googlesource.com/pkgsite/+/5c86378aae4c9aeaf522db7e0a3b312d079f8c3e/internal/source/source.go#638There is an existing model of self-hosted code repositories illustrated by
gitlab.*
. I suggest that we add something similar:The downside to this approach is that people using other domain names will not be supported by this pattern, but I suspect the vast majority of people running GitHub Enterprise Server are using the
github.
subdomain.The text was updated successfully, but these errors were encountered: