You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2019/08/19 23:12:42 UTC
[mynewt-newtmgr] branch master updated: Makefile: Update for
compatibility with Go modules
This is an automated email from the ASF dual-hosted git repository.
ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git
The following commit(s) were added to refs/heads/master by this push:
new 0bf8c01 Makefile: Update for compatibility with Go modules
0bf8c01 is described below
commit 0bf8c0144844b0892fc6491e97c446e5652438f1
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Mon Aug 19 12:42:40 2019 -0700
Makefile: Update for compatibility with Go modules
This fixes #140.
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index b9abb23..bbbe0ee 100644
--- a/Makefile
+++ b/Makefile
@@ -28,8 +28,9 @@ build:
mkdir -p $(MYNEWTDIR)
ln -s $(NEWTMGR_INSTALLDIR) $(REPODIR)
GOPATH=$(GODIR) go get github.com/currantlabs/ble github.com/mgutz/logxi/v1 golang.org/x/sys/unix
- cd $(NEWTMGRDIR) && GOPATH=$(GODIR) GO15VENDOREXPERIMENT=1 go install
+ cd $(NEWTMGRDIR) && GOPATH=$(GODIR) GO15VENDOREXPERIMENT=1 GO111MODULE=on go install
mv $(GODIR)/bin/$(TARGET) $(DSTFILE)
+ chmod -R 777 $(GODIR)
rm -rf $(GODIR)
install: