]> Cypherpunks repositories - gostls13.git/commitdiff
all: give nested modules fully-qualified names
authorMichael Pratt <mpratt@google.com>
Thu, 12 Jan 2023 21:55:19 +0000 (16:55 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 30 Jan 2023 15:19:45 +0000 (15:19 +0000)
The two crypto modules are both named "asm". If both are included in a
single go.work (e.g., from `go work use -r .` in the repo), builds break
from "module asm appears multiple times in workspace".

Give these modules fully-qualified names to avoid conflicts. While we
are here, also expand the name of two other testdata modules. Those
modules don't currently conflict, but they have vague names at risk of
future conflicts.

Fixes #57769.

Change-Id: I2bd8a505051e92348d49560ec698ed921f2c81be
Reviewed-on: https://go-review.googlesource.com/c/go/+/461896
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>

src/cmd/objdump/testdata/testfilenum/go.mod
src/crypto/internal/bigmod/_asm/go.mod
src/crypto/internal/edwards25519/field/_asm/go.mod

index db432883a996f46b2aee7e53b588695d842d134f..f0bd6b760310694449581dc1a63db19d8e444dd2 100644 (file)
@@ -1,3 +1,3 @@
-module objdumptest
+module cmd/objdump/testdata/testfilenum
 
 go 1.16
index 1ce2b5e465ae632c22ee79b3b3bf68184235c061..7600a4abbe13ce0b3defa6ff4afdece13bf36e71 100644 (file)
@@ -1,4 +1,4 @@
-module asm
+module std/crypto/internal/bigmod/_asm
 
 go 1.19
 
index 1ce2b5e465ae632c22ee79b3b3bf68184235c061..24ad644f76eb8d1146c6ae799e9d8eb039c6073f 100644 (file)
@@ -1,4 +1,4 @@
-module asm
+module std/crypto/internal/edwards25519/field/_asm
 
 go 1.19