cmd/go: get incorrectly rejects go-import/go-source meta tags with unquoted name attr #39748
Labels
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
This issue affecting us has been fixed via a workaround, so I can't post a working reproducer, but the previously it could have been replicated by doing the following.
GOPROXY=direct go get gonum.org/v1/gonum
What did you expect to see?
Downloading the module.
What did you see instead?
Additional information
This was brought to golang-nuts and Gophers' slack where the issue was suggested to be that the the name attribute of the meta tag was unquoted. Ensuring that the attribute remains quoted did resolve the superficial issue, however on raising this with the author of the minifier that removes the quotes (a dependency of hugo), the quotes are apparently not required. This is confirmed by checking the following html here (note that go-import is not quoted).
Also ref gohugoio/hugo#7415
The text was updated successfully, but these errors were encountered: