aboutsummaryrefslogtreecommitdiff
path: root/_content/ref/mod.md
diff options
context:
space:
mode:
authorthepudds1460 <thepudds1460@gmail.com>2025-04-03 12:14:52 -0400
committerSean Liao <sean@liao.dev>2025-05-24 06:45:31 -0700
commit4aa40c341625675026b5842216f31a158cb84e8d (patch)
tree67fccef75f33edafaff7c0cdd76b150ba8a25938 /_content/ref/mod.md
parentf757959e1acbdd4ea170d0aade63b4458b5c6846 (diff)
downloadgo-x-website-4aa40c341625675026b5842216f31a158cb84e8d.tar.xz
_content/ref/mod: 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 Modules Reference page. (CL 662695 is a companion change that removes it from cmd/go documentation). Fixes golang/go#71537 Change-Id: I89126612ac108b8b94572c6b97991d7d5eb2921b Reviewed-on: https://go-review.googlesource.com/c/website/+/662675 Reviewed-by: Michael Matloob <matloob@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Matloob <matloob@google.com> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to '_content/ref/mod.md')
-rw-r--r--_content/ref/mod.md26
1 files changed, 2 insertions, 24 deletions
diff --git a/_content/ref/mod.md b/_content/ref/mod.md
index dac8cc75..468d89d2 100644
--- a/_content/ref/mod.md
+++ b/_content/ref/mod.md
@@ -2246,30 +2246,8 @@ directory. The `go.mod` file must not already exist.
`init` accepts one optional argument, the [module path](#glos-module-path) for
the new module. See [Module paths](#module-path) for instructions on choosing
a module path. 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, 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. `init` supports the following configuration
-files.
-
-* `GLOCKFILE` (Glock)
-* `Godeps/Godeps.json` (Godeps)
-* `Gopkg.lock` (dep)
-* `dependencies.tsv` (godeps)
-* `glide.lock` (glide)
-* `vendor.conf` (trash)
-* `vendor.yml` (govend)
-* `vendor/manifest` (gvt)
-* `vendor/vendor.json` (govendor)
-
-Vendoring tool configuration files can't always be translated with perfect
-fidelity. For example, if multiple packages within the same repository are
-imported at different versions, and the repository only contains one module, the
-imported `go.mod` can only require the module at one version. You may wish to
-run [`go list -m all`](#go-list-m) to check all versions in the [build
-list](#glos-build-list), and [`go mod tidy`](#go-mod-tidy) to add missing
-requirements and to drop unused requirements.
+to infer the module path using import comments in `.go` files and the
+current directory (if in `GOPATH`).
### `go mod tidy` {#go-mod-tidy}