commit | b1d336cfca975f8b4b9c88e782fbe1911b2494b0 | [log] [tgz] |
---|---|---|
author | Michael Matloob <matloob@golang.org> | Thu Aug 15 11:08:58 2024 -0400 |
committer | Michael Matloob <matloob@golang.org> | Thu Aug 15 16:17:30 2024 +0000 |
tree | c83621cd7e0de84ba2a3a89e4d81351162c71e55 | |
parent | bc151c4e8ccc31931553c47d43e41c0efc246096 [diff] |
go.mod: update required go version to go1.22 Now that go1.23 has been released, versions of Go older than go1.22 are no longer supported. This will allow us to use the go/version package, which was introduced in Go 1.22. This change will force modules that depend on golang.org/x/mod, notably golang.org/x/tools, to update their Go version requirement to at least go1.22 when they update their requirement on golang.org/x/mod to a version after this commit. For golang/go#63395 Change-Id: I6f6b5bb9e43b5f9945cc5bc8c398628436d2e739 Reviewed-on: https://go-review.googlesource.com/c/mod/+/605796 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This repository holds packages for writing tools that work directly with Go module mechanics. That is, it is for direct manipulation of Go modules themselves.
It is NOT about supporting general development tools that need to do things like load packages in module mode. That use case, where modules are incidental rather than the focus, should remain in x/tools, specifically x/tools/go/packages.
The specific case of loading packages should still be done by invoking the go command, which remains the single point of truth for package loading algorithms.