We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go subcommands such as go mod tidy, go test, and go build automatically resolve invalid versions found in the go.mod file to valid ones.
go
go mod tidy
go test
go build
go.mod
However, the Playground's Format button does not; instead, it emits an error message like:
Format
go.mod:5: invalid module version "1f3472d942ba824034fb77cab6a6cfc1bc8a2c3c": version must be of the form v1.2.3
This is probably due to calling out to a golang.org/x/mod library instead of running the go command directly. (See also #32955 (comment) and #32614.)
golang.org/x/mod
CC @toothrot @dmitshur @ysmolsky
The text was updated successfully, but these errors were encountered:
Example: https://play.golang.org/p/yMyG925ovLb
Format produces an error, but Run runs the binary without error.
Run
Sorry, something went wrong.
No branches or pull requests
go
subcommands such asgo mod tidy
,go test
, andgo build
automatically resolve invalid versions found in thego.mod
file to valid ones.However, the Playground's
Format
button does not; instead, it emits an error message like:This is probably due to calling out to a
golang.org/x/mod
library instead of running thego
command directly. (See also #32955 (comment) and #32614.)CC @toothrot @dmitshur @ysmolsky
The text was updated successfully, but these errors were encountered: