New issue
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
x/tools/go/packages: Fails to build with 1.11 #41383
Comments
The mod file should be updated to go 1.14, the oldest supported release. |
Any particular reason you're using Go 1.11? It's not even receiving security updates at this point. |
I think it just hasn't been updated since then. |
As of right now we support 1.11+. We like to maintain compatibility for older versions of Go as our cloud client libraries are used by many developers running in many different environments. I don't expect that go1.11 stays maintained, just would like the mod file to be 1.12+ so the tooling can behave appropriately. I am assuming that |
Change https://golang.org/cl/254754 mentions this issue: |
@codyoss AFAIK the Go version is not considered when selecting versions. |
What version of Go are you using (
go version
)?go version go1.11.13 linux/amd64
Does this issue reproduce with the latest release?
No
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Tried to build a module that relied on the latest x/tools commit with go 1.11.
What did you expect to see?
It built successfully.
What did you see instead?
Fails to build with 1.11.
The mod file declares 1.11 but uses strings.ReplaceAll which was added in 1.12.
The text was updated successfully, but these errors were encountered: