1
0
mirror of https://github.com/golang/go synced 2024-11-23 06:50:05 -07:00

cmd/go/internal/get: improve -insecure deprecation docs

Updates #37519
This commit is contained in:
witchard 2020-09-24 18:10:40 +01:00
parent 0f55d37d44
commit 7a2c9b40df
3 changed files with 16 additions and 14 deletions

View File

@ -664,11 +664,12 @@
// The -insecure flag permits fetching from repositories and resolving
// custom domains using insecure schemes such as HTTP. Use with caution.
// This flag is deprecated and will be removed in a future version of go.
// The GOINSECURE environment variable is usually a better alternative, since
// it provides control over which modules may be retrieved using an insecure
// scheme. It should be noted that the -insecure flag also turns the module
// checksum validation off. GOINSECURE does not do that, use GONOSUMDB.
// See 'go help environment' for details.
// The GOINSECURE environment variable should be used instead, since it
// provides control over which modules may be retrieved using an insecure
// scheme. Unlike the -insecure flag, GOINSECURE does not disable module
// sum validation using the checksum database. The GOPRIVATE or GONOSUMDB
// environment variable may be used instead. See 'go help environment'
// for details.
//
// The second step is to download (if needed), build, and install
// the named packages.
@ -2214,8 +2215,8 @@
// The -insecure flag permits fetching from repositories and resolving
// custom domains using insecure schemes such as HTTP. Use with caution.
// This flag is deprecated and will be removed in a future version of go.
// The GOINSECURE environment variable is usually a better alternative, since
// it provides control over which modules may be retrieved using an insecure
// The GOINSECURE environment variable should be used instead, since it
// provides control over which modules may be retrieved using an insecure
// scheme. See 'go help environment' for details.
//
// The -t flag instructs get to also download the packages required to build

View File

@ -46,8 +46,8 @@ before resolving dependencies or building the code.
The -insecure flag permits fetching from repositories and resolving
custom domains using insecure schemes such as HTTP. Use with caution.
This flag is deprecated and will be removed in a future version of go.
The GOINSECURE environment variable is usually a better alternative, since
it provides control over which modules may be retrieved using an insecure
The GOINSECURE environment variable should be used instead, since it
provides control over which modules may be retrieved using an insecure
scheme. See 'go help environment' for details.
The -t flag instructs get to also download the packages required to build

View File

@ -117,11 +117,12 @@ this automatically as well.
The -insecure flag permits fetching from repositories and resolving
custom domains using insecure schemes such as HTTP. Use with caution.
This flag is deprecated and will be removed in a future version of go.
The GOINSECURE environment variable is usually a better alternative, since
it provides control over which modules may be retrieved using an insecure
scheme. It should be noted that the -insecure flag also turns the module
checksum validation off. GOINSECURE does not do that, use GONOSUMDB.
See 'go help environment' for details.
The GOINSECURE environment variable should be used instead, since it
provides control over which modules may be retrieved using an insecure
scheme. Unlike the -insecure flag, GOINSECURE does not disable module
sum validation using the checksum database. The GOPRIVATE or GONOSUMDB
environment variable may be used instead. See 'go help environment'
for details.
The second step is to download (if needed), build, and install
the named packages.