kumquat-buildroot/package/go
Christian Stewart f7a2870dd1 go: explicitly disable modules to avoid unintended network lookup
Go "modules" refers to the dependency fetching, verification (hashing), and
version control system built into Go as of 1.11.

It is not desirable to have Go modules enabled in Buildroot in the normal case,
as Buildroot manages downloading the sources, and third party dependency
managers are typically not used.

In the absence of the GO111MODULE environment variable, the Go compiler will
correctly compile using the "vendor" version of dependencies downloaded by
Buildroot during the compilation process for Go-based packages.

However, if the user sets the GO111MODULE=on environment variable, the Go
compiler will download the Go dependencies for Buildroot packages, using the
modules system. This is potentially unintended behavior from user environment
variables.

This commit sets the GO111MODULE=off variable in the Go target and host
compilation environments, disabling Go modules support for Buildroot mainline
packages.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-03-03 22:15:24 +01:00
..
0001-build.go-explicit-option-for-crosscompilation.patch
Config.in.host package: hide golang packages for toolchains with binutils bug 20006 2018-11-29 21:22:45 +01:00
go.hash go: security bump to 1.11.5 2019-01-24 10:46:22 +01:00
go.mk go: explicitly disable modules to avoid unintended network lookup 2019-03-03 22:15:24 +01:00