Skip to content

Commit 4820816

Browse files
thepuddsgopherbot
authored andcommitted
cmd/go/internal/modcmd: remove documentation for auto-converting legacy formats
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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Matloob <[email protected]> Reviewed-by: Sean Liao <[email protected]> Auto-Submit: Sean Liao <[email protected]>
1 parent cfb78d6 commit 4820816

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/cmd/go/alldocs.go

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/modcmd/init.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ must not already exist.
2222
2323
Init accepts one optional argument, the module path for the new module. If the
2424
module path argument is omitted, init will attempt to infer the module path
25-
using import comments in .go files, vendoring tool configuration files (like
26-
Gopkg.lock), and the current directory (if in GOPATH).
25+
using import comments in .go files and the current directory (if in GOPATH).
2726
2827
See https://golang.org/ref/mod#go-mod-init for more about 'go mod init'.
2928
`,

src/cmd/go/internal/modfetch/repo.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ type RevInfo struct {
110110
// introduced, if a path p resolves using the pre-module "go get" lookup
111111
// to the root of a source code repository without a go.mod file,
112112
// that repository is treated as if it had a go.mod in its root directory
113-
// declaring module path p. (The go.mod is further considered to
114-
// contain requirements corresponding to any legacy version
115-
// tracking format such as Gopkg.lock, vendor/vendor.conf, and so on.)
113+
// declaring module path p.
116114
//
117115
// The presentation so far ignores the fact that a source code repository
118116
// has many different versions of a file tree, and those versions may

0 commit comments

Comments
 (0)