Skip to content

Commit 9dd1cde

Browse files
Bryan C. Millscagedmantis
Bryan C. Mills
authored andcommitted
doc/go1.22,cmd/go: document that 'go mod init' no longer imports from other vendoring tools
This support was removed in CL 518776. For #61422. Fixes #53327. Change-Id: I8ad0f76aed5f03e32c4c2c5c0001c3f06beb3c7d Reviewed-on: https://go-review.googlesource.com/c/go/+/548877 Reviewed-by: Carlos Amedee <[email protected]> Reviewed-by: Than McIntosh <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 22284c3 commit 9dd1cde

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

doc/go1.22.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ <h3 id="go-command">Go command</h3>
9494

9595
<!-- CL 518776 -->
9696
<p>
97-
<!-- cmd/go: remove conversion of legacy pre-module dependency configs -->
97+
<code>go</code> <code>mod</code> <code>init</code> no longer attempts to import
98+
module requirements from configuration files for other vendoring tools
99+
(such as <code>Gopkg.lock</code>).
98100
</p>
99101

100102
<!-- CL 495447 -->

src/cmd/go/alldocs.go

-3
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

-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ module path argument is omitted, init will attempt to infer the module path
2525
using import comments in .go files, vendoring tool configuration files (like
2626
Gopkg.lock), and the current directory (if in GOPATH).
2727
28-
If a configuration file for a vendoring tool is present, init will attempt to
29-
import module requirements from it.
30-
3128
See https://golang.org/ref/mod#go-mod-init for more about 'go mod init'.
3229
`,
3330
Run: runInit,

0 commit comments

Comments
 (0)