]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/modcmd: remove documentation for auto-converting legacy formats
authorthepudds <thepudds1460@gmail.com>
Thu, 3 Apr 2025 16:01:16 +0000 (12:01 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 9 Apr 2025 20:53:22 +0000 (13:53 -0700)
CL 518776 dropped the ability of 'go mod init' to convert
legacy pre-module dependency configuration files, such as automatically
transforming a Gopkg.lock to a go.mod file with similar requirements,
but some of the documentation remained.

In this CL, we remove it from the cmd/go documentation.
(CL 662675 is a companion change that removes it from the Modules
Reference page).

Updates #71537

Change-Id: Ieccc64c811c4c25a657c00e42f7362a32b5fd661
Reviewed-on: https://go-review.googlesource.com/c/go/+/662695
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Sean Liao <sean@liao.dev>
Auto-Submit: Sean Liao <sean@liao.dev>

src/cmd/go/alldocs.go
src/cmd/go/internal/modcmd/init.go
src/cmd/go/internal/modfetch/repo.go

index 42076e45026ffa2fcc3bb1a1a82067d5039795f5..18ba20127d3836d4a5bb5ce08703a2cdf92b4b04 100644 (file)
 //
 // Init accepts one optional argument, the module path for the new module. If the
 // module path argument is omitted, init will attempt to infer the module path
-// using import comments in .go files, vendoring tool configuration files (like
-// Gopkg.lock), and the current directory (if in GOPATH).
+// using import comments in .go files and the current directory (if in GOPATH).
 //
 // See https://golang.org/ref/mod#go-mod-init for more about 'go mod init'.
 //
index facdaa9911c36514539e413e6778751191c5eb33..356a0569913edf28a6368c2436de28fb7788053e 100644 (file)
@@ -22,8 +22,7 @@ must not already exist.
 
 Init accepts one optional argument, the module path for the new module. If the
 module path argument is omitted, init will attempt to infer the module path
-using import comments in .go files, vendoring tool configuration files (like
-Gopkg.lock), and the current directory (if in GOPATH).
+using import comments in .go files and the current directory (if in GOPATH).
 
 See https://golang.org/ref/mod#go-mod-init for more about 'go mod init'.
 `,
index b07fda0fb5bcd11634cdb316b8ba0c6dab944510..c4dbf8342cb68357060dc5263bae28bab044118d 100644 (file)
@@ -110,9 +110,7 @@ type RevInfo struct {
 // introduced, if a path p resolves using the pre-module "go get" lookup
 // to the root of a source code repository without a go.mod file,
 // that repository is treated as if it had a go.mod in its root directory
-// declaring module path p. (The go.mod is further considered to
-// contain requirements corresponding to any legacy version
-// tracking format such as Gopkg.lock, vendor/vendor.conf, and so on.)
+// declaring module path p.
 //
 // The presentation so far ignores the fact that a source code repository
 // has many different versions of a file tree, and those versions may