Go: fixing tests for Go 1.16.
In Go 1.16, the module-aware mode is enabled by default; to fall back to previous behavior, the GO111MODULE environment variable should be set to 'auto'. Details: https://golang.org/doc/go1.16
This commit is contained in:
@@ -13,6 +13,7 @@ class TestApplicationGo(TestApplicationProto):
|
||||
env = os.environ.copy()
|
||||
env['GOPATH'] = option.current_dir + '/build/go'
|
||||
env['GOCACHE'] = option.cache_dir + '/go'
|
||||
env['GO111MODULE'] = 'auto'
|
||||
|
||||
if static:
|
||||
args = [
|
||||
|
||||
Reference in New Issue
Block a user