summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2021-05-25 18:00:59 +0300
committerMax Romanov <max.romanov@nginx.com>2021-05-25 18:00:59 +0300
commit155e22da05f01eb51b9dc082e9c8e8bff9b5ec8d (patch)
tree67006792d790c15c1d1048095fb72cba673d9820 /auto
parent2fe76afaa69a0a992fd376c03c345f1ceb04b80e (diff)
downloadunit-155e22da05f01eb51b9dc082e9c8e8bff9b5ec8d.tar.gz
unit-155e22da05f01eb51b9dc082e9c8e8bff9b5ec8d.tar.bz2
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
Diffstat (limited to 'auto')
-rw-r--r--auto/modules/go2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto/modules/go b/auto/modules/go
index 8bb9216e..7324ffbe 100644
--- a/auto/modules/go
+++ b/auto/modules/go
@@ -111,7 +111,7 @@ install: ${NXT_GO}-install
${NXT_GO}:
${NXT_GO}-install: ${NXT_GO}-install-src ${NXT_GO}-install-env
- GOPATH=\$(DESTDIR)\$(GOPATH) ${NXT_GO} build ${NXT_GO_PKG}
+ GOPATH=\$(DESTDIR)\$(GOPATH) GO111MODULE=auto ${NXT_GO} build ${NXT_GO_PKG}
${NXT_GO}-install-src:
install -d \$(DESTDIR)\$(NXT_GO_DST)/src/${NXT_GO_PKG}