summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2022-01-10 16:07:31 +0300
committerMax Romanov <max.romanov@nginx.com>2022-01-10 16:07:31 +0300
commit1297e8a16a2fb0ccc195c0dd14b678bb2d7fc9fc (patch)
treea1ea5a3eb322bd8f3e8c6f222dcb7c076e11339c /auto
parent818a78d82cd9aeb6c7429ef97cd1f39f9053b909 (diff)
downloadunit-1297e8a16a2fb0ccc195c0dd14b678bb2d7fc9fc.tar.gz
unit-1297e8a16a2fb0ccc195c0dd14b678bb2d7fc9fc.tar.bz2
Tests: using modules in Go.
Diffstat (limited to 'auto')
-rw-r--r--auto/modules/go3
1 files changed, 2 insertions, 1 deletions
diff --git a/auto/modules/go b/auto/modules/go
index 7324ffbe..a8596bf3 100644
--- a/auto/modules/go
+++ b/auto/modules/go
@@ -111,7 +111,8 @@ install: ${NXT_GO}-install
${NXT_GO}:
${NXT_GO}-install: ${NXT_GO}-install-src ${NXT_GO}-install-env
- GOPATH=\$(DESTDIR)\$(GOPATH) GO111MODULE=auto ${NXT_GO} build ${NXT_GO_PKG}
+ cd \$(DESTDIR)\$(NXT_GO_DST)/src/${NXT_GO_PKG} && \
+ GOPATH=\$(DESTDIR)\$(GOPATH) ${NXT_GO} build ${NXT_GO_PKG}
${NXT_GO}-install-src:
install -d \$(DESTDIR)\$(NXT_GO_DST)/src/${NXT_GO_PKG}