]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.14: document the new GOINSECURE variable
authorBryan C. Mills <bcmills@google.com>
Fri, 24 Jan 2020 19:57:41 +0000 (14:57 -0500)
committerBryan C. Mills <bcmills@google.com>
Mon, 27 Jan 2020 14:32:54 +0000 (14:32 +0000)
Fixes #36746

Change-Id: Iab9eaceb743ee52c82e7645216a671362189a021
Reviewed-on: https://go-review.googlesource.com/c/go/+/216380
Reviewed-by: witchard <ben.witchard@gmail.com>
Reviewed-by: Russ Cox <rsc@golang.org>
doc/go1.14.html

index 74ff5a3bef7c9968a17b9424c056a528dcbeec9b..99d2550680470a9492d820c136e5e8b56ea6cca6 100644 (file)
@@ -193,6 +193,16 @@ TODO
   trimming the ".mod" extension and appending ".sum".
 </p>
 
+<h4 id="go-env-vars">Environment variables</h4>
+
+<p><!-- golang.org/issue/32966 -->
+  <code>GOINSECURE</code> is a new environment variable that instructs
+  the <code>go</code> command to not require an HTTPS connection, and to skip
+  certificate validation, when fetching certain modules directly from their
+  origins. Like the existing <code>GOPRIVATE</code> variable, the value
+  of <code>GOINSECURE</code> is a comma-separated list of glob patterns.
+</p>
+
 <h4 id="incompatible-versions"><code>+incompatible</code> versions</h4>
 <!-- golang.org/issue/34165 -->