these days go.mod files declare their name like module my.go/module/name at the top of the file, but it looks like vgo, the predecessor to Go Modules, actually quoted the name, e.g. module "my.go/module/name"
Go still seems able to parse these older go.mod files and will also auto-correct them when it updates the go.mod file. But pkg.go.dev doesn't consider them valid.
this adds support for the quoted names when looking up the canonical name via the Go Proxy's go.mod API, to avoid errors like these when updating the package:
bad URI(is not URI?): "https://pkg.go.dev/\"github.com/SimonWaldherr/gwv\""
these days
go.mod
files declare their name likemodule my.go/module/name
at the top of the file, but it looks like vgo, the predecessor to Go Modules, actually quoted the name, e.g.module "my.go/module/name"
Go still seems able to parse these older
go.mod
files and will also auto-correct them when it updates thego.mod
file. But pkg.go.dev doesn't consider them valid.this adds support for the quoted names when looking up the canonical name via the Go Proxy's go.mod API, to avoid errors like these when updating the package:
bad URI(is not URI?): "https://pkg.go.dev/\"github.com/SimonWaldherr/gwv\""