-
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: Missing links to source code for git.sr.ht #38986
Comments
/cc @julieqiu |
Also cc @eliasnaur. I don't think we had noticed this bug before. |
Maintainer of git.sr.ht here. Please don't plow forward with replacing godoc.org without fixing all of my broken forge links :/ |
We'll add support for this before redirecting godoc.org requests. |
@julieqiu out of curiosity, couldn't pkg.go.dev support any source code hosting site that's properly declared via the go-source meta tag?
|
Someone correctly pointed out that such meta tags have placeholders for |
I've been thinking of writing a proposal for that. It's a bit more complicated than adding
|
@jba good points. If you want to lead a proposal for this, might I suggest starting a google doc where people can leave comments as input? We'll need input from users experienced in different code hosting sites, so I think that should happen before the proposal is posted. |
Oh, there is already a field for directories, so maybe it's not so bad. I'll file a proposal now. |
@mvdan I'll do that. I need to think about it some more so it might not be before the end of the week. |
Here is a draft proposal for a new module-aware go-source tag: https://docs.google.com/document/d/1JCjDE6vXqJSvomOauEg_T808DWh25wNkyLjEvYlK63E/edit?usp=sharing. Please comment, and share with anyone you think might have something to contribute. When the dust settles I'll create a proper proposal issue. |
If we're going to update the tag format, can we please take the opportunity to make it less blatantly Go-specific? It makes me queasy to add support code for hosting any particular programming language to my git hosting platform. |
@ddevault I think the only language-specific part is the word |
We could call it |
I copied the above doc into #39559, for one more round of comments. @ddevault, we've thought about your suggestion. As you point out, finding a common tag name would require a discussion with other language communities, which is a big undertaking with no clear timeline. While we would welcome and support a common tag, it's out of scope for us to start that process. This issue will remain open: we have yet to implement the new meta tag. |
You don't feel a responsibility to implement the right solution? It's not that much more work, it's just a different kind of work. You solve the problem that's in front of you. |
In other words, as the maintainer of a code forge who would have to implement this feature, you have my NACK on a Go-specific approach. |
To my mind, it's more a matter of them not wanting to be responsible for such a standard. They are stretched pretty thin in general, so that makes sense to me, even when I'd also like a standard to exist. |
This comment has been minimized.
This comment has been minimized.
Change https://golang.org/cl/245039 mentions this issue: |
I'm not going to make a Google account to comment on that changeset, can someone please pass along this message: git.sr.ht is not the only host which is running a sourcehut instance. It's free software and can be deployed to any host. |
@ddevault this is a fine place to communicate with us. Do you happen to have a list of popular deployments? Unfortunately we can only recognize code hosting sites by URL. |
Is there something that could be added to the go-source tag or perhaps some other kind of meta tag which would be sufficient for identifying git.sr.ht software? |
If you hard-code git hosts you're going to eliminate huge swaths of software, including git.sr.ht, cgit, gitweb, gogs, gitea, gitlab... |
Sorry, I wasn't clear. I'm using regexps. E.g. Are all those sites sourcehut deployments? |
No, those are all names of git web frontend softwares. Your gitlab regex only matches gitlab.com, not any other gitlab instances like gitlab.freedesktop.org, or gitlab.alpinelinux.org, or salsa.debian.org, or any of dozens more. If you set up a regex for codeberg.org (whose software is Gitea), you won't hit git.openprivacy.ca, or git.habd.as, or another dozen more. If you set up cgit, you might have git.zx2c4.com, but not git.kernel.org. These are free and open source git platforms which anyone can deploy to their own servers, on their own domains, and might want to host Go packges there. You can't hardcode specific hosting providers because that's not how it works, git isn't centralized like that. |
This ticket should not be closed until this is actually finished. Support needs to be added for git.sr.ht the software, not just git.sr.ht the hosted instance. Please don't ship pkg.go.dev while it is based on an incorrect assumption about the centralization of git hosting. |
We discussed this issue in the last golang-tools meeting, and posted an update at #40477 (comment). We’re sorry that the communication has been spread across multiple threads, which may have made the conversation hard to follow. We plan to use #40477 going forward. Please follow up on that thread with any comments. |
What version of Go are you using (
go version
)?N/A
Does this issue reproduce with the latest release?
N/A
What operating system and processor architecture are you using (
go env
)?N/A
What did you do?
What did you expect to see?
What did you see instead?
This is a regression, https://godoc.org/gioui.org/font/opentype#Collection links to source code properly.
The text was updated successfully, but these errors were encountered: