Description
NOTE: The accepted proposal is #34055 (comment).
If you head to https://github.com/nhooyr/websocket presently, you'll get blasted with a massive root directory listing, mostly due to all the Go files. It's obnoxious.
Compare that to https://github.com/nhooyr/websocket/tree/067b40e227d0d6af9e399c1efe0dd80efae1b79f where the Go module has been moved to the subdirectory ./mod
inside the repository.
See coder/websocket#136
So I want to move the Go module to the subdirectory ./mod
inside the repository and serve that subdirectory for the nhooyr.io/websocket
import path but it doesn't look like there is an easy way to do that.
The go-import meta tag only allows me to specify the import path of the repository, which in this case would make it nhooyr.io/websocket/mod
which is nasty. I want to serve the subdirectory directly under nhooyr.io/websocket
. Looks like I can do this with the new mod vcs to the go-import tag but then I have to run my own module server which I want to ideally avoid.
Is this something that would be considered or is already possible?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Status