git » debian:dnss » commit d16a3f5

Track dependencies with glide (experiment)

author Alberto Bertogli
2016-08-20 11:19:20 UTC
committer Alberto Bertogli
2016-08-20 11:58:03 UTC
parent 9195e1a328dc3936f1a7b62b6a917adc7cad7c60

Track dependencies with glide (experiment)

glide is a Go tool for vendoring, which we will use here to make it easier to
track dependencies and versions that we have tested against.

Users are not expected to use it, dnss should just build and work.

But using glide for development means it's easier to track the versions we've
tested against, and identify when backwards-incompatible dependency changes
break dnss. This is an unfortunate consequence of how golang does
dependencies.

Note we intentionally do not include all the dependencies in the repository.

This is an experiment, and may be reverted or changed if it doesn't work, so
don't rely on it for packaging or automation.

.gitignore +4 -0
glide.lock +37 -0
glide.yaml +18 -0

diff --git a/.gitignore b/.gitignore
index f2c5d79..3d18e26 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,7 @@ dnss
 *.pem
 *.crt
 *.key
+
+# Ignore the vendor directory - we don't want to embed everything, we use
+# glide to track upstream changes, but things should work.
+vendor/
diff --git a/glide.lock b/glide.lock
new file mode 100644
index 0000000..f3b0137
--- /dev/null
+++ b/glide.lock
@@ -0,0 +1,37 @@
+hash: 7c3cf09373a10a9df1e6cd5211536c7df297cec6a21fabe892e1fe6bb0ae9299
+updated: 2016-08-20T12:53:03.913443696+01:00
+imports:
+- name: github.com/coreos/go-systemd
+  version: d6c05a1dcbb5ac02b7653da4d99e5db340c20778
+  subpackages:
+  - activation
+- name: github.com/golang/glog
+  version: 23def4e6c14b4da8ac2ed8007337bc5eb5007998
+- name: github.com/golang/protobuf
+  version: f592bd283e9ef86337a432eb50e592278c3d534d
+  subpackages:
+  - proto
+- name: github.com/miekg/dns
+  version: db96a2b759cdef4f11a34506a42eb8d1290c598e
+- name: golang.org/x/net
+  version: 7394c112eae4dba7e96bfcfe738e6373d61772b4
+  subpackages:
+  - context
+  - trace
+  - http2
+  - internal/timeseries
+  - http2/hpack
+  - lex/httplex
+- name: google.golang.org/grpc
+  version: 0032a855ba5c8a3c8e0d71c2deef354b70af1584
+  subpackages:
+  - credentials
+  - grpclog/glogger
+  - codes
+  - grpclog
+  - internal
+  - metadata
+  - naming
+  - transport
+  - peer
+testImports: []
diff --git a/glide.yaml b/glide.yaml
new file mode 100644
index 0000000..74eea02
--- /dev/null
+++ b/glide.yaml
@@ -0,0 +1,18 @@
+package: blitiri.com.ar/go/dnss
+import:
+- package: github.com/coreos/go-systemd
+  subpackages:
+  - activation
+- package: github.com/golang/glog
+- package: github.com/golang/protobuf
+  subpackages:
+  - proto
+- package: github.com/miekg/dns
+- package: golang.org/x/net
+  subpackages:
+  - context
+  - trace
+- package: google.golang.org/grpc
+  subpackages:
+  - credentials
+  - grpclog/glogger