all: use path for go.mod module path We have various small submodules in the repository, mostly used for code generation tools with external dependencies. Currently naming is fairly ad-hoc. Some name the module based on the path of the directory, while others use a single name like _gen. If a developer creates a go.work file creating a workspace containing these submodules (go work use -r .) [1], then all module names must be unique. Since CL 772102, we have two modules named _gen, so any operation after creating go.work immediately fails with a duplicate module error. Resolve this by using module paths based on the path to the directory. The load bearing changes here are modifying cmd/compile/internal/ssa/_gen/go.mod and/or simd/archsimd/_gen/go.mod so they no longer conflict, but I've changed all module paths to use the same naming scheme for consistency. Note that std and cmd get special treatment by cmd/go, so avoid those prefixes. e.g., the cmd/vet modules seem to ignore the Go language version when using a cmd/ prefix. [1] I found this issue because the build process for cross-references on https://cs.opensource.google/go does this and is currently broken. Change-Id: I8b3a351c16bd6d52192fb7b45186c38f6a6a6964 Reviewed-on: https://go-review.googlesource.com/c/go/+/798560 Auto-Submit: Michael Pratt <mpratt@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 4.0 Attribution license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.