Date: Thu, 12 Nov 2020 08:15:43 +0000 (UTC) From: Dave Cottlehuber <dch@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r554936 - head/Mk/Uses Message-ID: <202011120815.0AC8FhhO028482@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dch Date: Thu Nov 12 08:15:43 2020 New Revision: 554936 URL: https://svnweb.freebsd.org/changeset/ports/554936 Log: Ensure go modules cannot fetch missing modules via network Notes from go help modules: If GOPROXY is set to the string "direct", downloads use a direct connection to source control servers. Setting GOPROXY to "off" disallows downloading modules from any source. Otherwise, GOPROXY is expected to be list of module proxy URLs separated by either comma (,) or pipe (|) characters, which control error fallback behavior. For each request, the go command tries each proxy in sequence. If there is an error, the go command will try the next proxy in the list if the error is a 404 or 410 HTTP response or if the current proxy is followed by a pipe character, indicating it is safe to fall back on any error. The GOPRIVATE and GONOPROXY environment variables allow bypassing the proxy for selected modules. See 'go help module-private' for details. No matter the source of the modules, the go command checks downloads against known checksums, to detect unexpected changes in the content of any specific module version from one day to the next. This check first consults the current module's go.sum file but falls back to the Go checksum database, controlled by the GOSUMDB and GONOSUMDB environment variables. See 'go help module-auth' for details. Reviewed by: dmgk Sponsored by: SkunkWerks, GmbH Differential Revision: https://reviews.freebsd.org/D26860 Modified: head/Mk/Uses/go.mk Modified: head/Mk/Uses/go.mk ============================================================================== --- head/Mk/Uses/go.mk Thu Nov 12 08:04:36 2020 (r554935) +++ head/Mk/Uses/go.mk Thu Nov 12 08:15:43 2020 (r554936) @@ -108,6 +108,7 @@ GO_TESTFLAGS+= -mod=vendor GO_WRKSRC= ${WRKSRC} GO_ENV+= GOPATH="" \ GOBIN="${GO_WRKDIR_BIN}" \ + GOPROXY=off \ GO_NO_VENDOR_CHECKS=1 .else GO_WRKSRC= ${WRKDIR}/src/${GO_PKGNAME}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011120815.0AC8FhhO028482>