Skip to content

Commit

Permalink
doc/go1.22,cmd/go: document that 'go mod init' no longer imports from…
Browse files Browse the repository at this point in the history
… other vendoring tools

This support was removed in CL 518776.

For golang#61422.
Fixes golang#53327.

Change-Id: I8ad0f76aed5f03e32c4c2c5c0001c3f06beb3c7d
Reviewed-on: https://go-review.googlesource.com/c/go/+/548877
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
Bryan C. Mills authored and ezz-no committed Feb 17, 2024
1 parent 9ff3491 commit 0fb8882
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion doc/go1.22.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ <h3 id="go-command">Go command</h3>

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

<!-- CL 495447 -->
Expand Down
3 changes: 0 additions & 3 deletions src/cmd/go/alldocs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/cmd/go/internal/modcmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ 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).
If a configuration file for a vendoring tool is present, init will attempt to
import module requirements from it.
See https://golang.org/ref/mod#go-mod-init for more about 'go mod init'.
`,
Run: runInit,
Expand Down

0 comments on commit 0fb8882

Please sign in to comment.