aboutsummaryrefslogtreecommitdiff
path: root/_content/ref/mod.md
diff options
context:
space:
mode:
authorSean Liao <sean@liao.dev>2026-03-13 21:22:16 +0000
committerMichael Matloob <matloob@google.com>2026-03-17 10:00:44 -0700
commite29aa5f9e61916ebc618b7ab68e215edd32319e8 (patch)
tree308066c9d779eb7f2adbcb96de23a2df567464b8 /_content/ref/mod.md
parenteabc5990c5562a48abd91d82255cc4b114ca30da (diff)
downloadgo-x-website-e29aa5f9e61916ebc618b7ab68e215edd32319e8.tar.xz
_content/ref: correct repo-url requirements
This aligns it with the documentation of "go help importpath", which is also the behavior implemented by cmd/go. Fixes golang/go#77371 Change-Id: I84a0802c255602258de7148d61b3058328dd45ca Reviewed-on: https://go-review.googlesource.com/c/website/+/755300 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Michael Matloob <matloob@google.com> Reviewed-by: Michael Matloob <matloob@golang.org>
Diffstat (limited to '_content/ref/mod.md')
-rw-r--r--_content/ref/mod.md7
1 files changed, 2 insertions, 5 deletions
diff --git a/_content/ref/mod.md b/_content/ref/mod.md
index bfcec7d1..702f18a8 100644
--- a/_content/ref/mod.md
+++ b/_content/ref/mod.md
@@ -3215,11 +3215,8 @@ the module from the given URL using the [`GOPROXY`
protocol](#goproxy-protocol). See [Serving modules directly from a
proxy](#serving-from-proxy) for details.
-`repo-url` is the repository's URL. If the URL does not include a scheme (either
-because the module path has a VCS qualifier or because the `<meta>` tag lacks a
-scheme), the `go` command will try each protocol supported by the version
-control system. For example, with Git, the `go` command will try `https://` then
-`git+ssh://`. Insecure protocols (like `http://` and `git://`) may only be used
+`repo-url` is the repository's URL, containing a scheme and not containing
+a .vcs qualifier. Insecure protocols (like `http://` and `git://`) may only be used
if the module path is matched by the `GOINSECURE` environment variable.
`subdirectory`, if present, is the slash-separated subdirectory of the repository