Unable to use SourceForge repositories as Go modules
Description:
Hello,
I am trying to publish a Go module using a SourceForge Git repository. When running:
go get https://git.code.sf.net/p/tracetypes/tracetypes@v0.1.0
or importing in Go code:
import "sourceforge.net/p/tracetypes/tracetypes"
the Go toolchain fails with an error:
no go-import meta tags
Go’s module system requires that the import path resolve to an HTML page containing a <meta name="go-import"> tag specifying the repository location, e.g.:
<meta name="go-import" content="sourceforge.net/p/tracetypes/tracetypes git https://git.code.sf.net/p/tracetypes/tracetypes.git">
It seems like SourceForge currently does not provide a way to serve or configure these tags on repository pages. As a result, Go modules cannot be published or consumed directly from SourceForge.
Could SourceForge provide support for <meta name="go-import"> tags, or an alternative mechanism to allow Go module discovery from SourceForge-hosted Git repositories?
Thank you for your help.