You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by st...@apache.org on 2019/01/31 20:54:09 UTC
[mynewt-newt] branch master updated: Add support for Go modules
This is an automated email from the ASF dual-hosted git repository.
sterling pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git
The following commit(s) were added to refs/heads/master by this push:
new f6806bb Add support for Go modules
new 807d1d1 Merge pull request #263 from d3zd3z/go-module
f6806bb is described below
commit f6806bb772346ba414955413a23c5096fc3ddda2
Author: David Brown <da...@linaro.org>
AuthorDate: Thu Jan 31 10:15:20 2019 -0700
Add support for Go modules
Recent versions of Go (v1.11) have built-in support for modules. With
this change, and at least v1.11 of Go, it is possible to simply cd to
the `newt` directory, and type `go build` to build go. It is no longer
necessary to setup a GOPATH, or use `build.sh`.
As Module support stabilizes, the dep files `Gopkg.toml` and
`Gopkg.lock` can go away, and the vendor directory recreated by running
`go mod vendor`.
Fixes #262
---
go.mod | 12 ++++++++++++
go.sum | 15 +++++++++++++++
2 files changed, 27 insertions(+)
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..080552a
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,12 @@
+module mynewt.apache.org/newt
+
+require (
+ github.com/NickBall/go-aes-key-wrap v0.0.0-20170929221519-1c3aa3e4dfc5
+ github.com/Sirupsen/logrus v1.0.5
+ github.com/inconshreveable/mousetrap v1.0.0
+ github.com/spf13/cast v1.2.0
+ github.com/spf13/cobra v0.0.3
+ github.com/spf13/pflag v1.0.1
+ golang.org/x/crypto v0.0.0-20180621125126-a49355c7e3f8
+ golang.org/x/sys v0.0.0-20180707002001-3c6ecd8f22c6
+)
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..56958ce
--- /dev/null
+++ b/go.sum
@@ -0,0 +1,15 @@
+github.com/NickBall/go-aes-key-wrap v0.0.0-20170929221519-1c3aa3e4dfc5 h1:5BIUS5hwyLM298mOf8e8TEgD3cCYqc86uaJdQCYZo/o=
+github.com/NickBall/go-aes-key-wrap v0.0.0-20170929221519-1c3aa3e4dfc5/go.mod h1:w5D10RxC0NmPYxmQ438CC1S07zaC1zpvuNW7s5sUk2Q=
+github.com/Sirupsen/logrus v1.0.5 h1:447dy9LxSj+Iaa2uN3yoFHOzU9yJcJYiQPtNz8OXtv0=
+github.com/Sirupsen/logrus v1.0.5/go.mod h1:rmk17hk6i8ZSAJkSDa7nOxamrG+SP4P0mm+DAvExv4U=
+github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
+github.com/spf13/cast v1.2.0 h1:HHl1DSRbEQN2i8tJmtS6ViPyHx35+p51amrdsiTCrkg=
+github.com/spf13/cast v1.2.0/go.mod h1:r2rcYCSwa1IExKTDiTfzaxqT2FNHs8hODu4LnUfgKEg=
+github.com/spf13/cobra v0.0.3 h1:ZlrZ4XsMRm04Fr5pSFxBgfND2EBVa1nLpiy1stUsX/8=
+github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
+github.com/spf13/pflag v1.0.1 h1:aCvUg6QPl3ibpQUxyLkrEkCHtPqYJL4x9AuhqVqFis4=
+github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
+golang.org/x/crypto v0.0.0-20180621125126-a49355c7e3f8 h1:h7zdf0RiEvWbYBKIx4b+q41xoUVnMmvsGZnIVE5syG8=
+golang.org/x/crypto v0.0.0-20180621125126-a49355c7e3f8/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
+golang.org/x/sys v0.0.0-20180707002001-3c6ecd8f22c6 h1:Cz4Qko2XI4t1PQc1ntprOvCDgdAh1ErauyEFKlFYTxw=
+golang.org/x/sys v0.0.0-20180707002001-3c6ecd8f22c6/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=