From 41a13764cd1045c52b5514f74608455644daf36b Mon Sep 17 00:00:00 2001 From: Radu Matei Date: Wed, 5 Dec 2018 15:41:16 +0200 Subject: [PATCH] Add `dep` (#11) * Add Gopkg.* and vendor/ dir * Add info about running dep ensure in readme --- .gitignore | 4 +++- Gopkg.lock | 28 ++++++++++++++++++++++++++++ Gopkg.toml | 11 +++++++++++ README.md | 1 + 4 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 Gopkg.lock create mode 100644 Gopkg.toml diff --git a/.gitignore b/.gitignore index b6645a8..11ff308 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,6 @@ # Files without extension (Linux binary, for example) * !/**/ -!*.* \ No newline at end of file +!*.* +# Golang vendor directory +vendor/ diff --git a/Gopkg.lock b/Gopkg.lock new file mode 100644 index 0000000..c565af3 --- /dev/null +++ b/Gopkg.lock @@ -0,0 +1,28 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + digest = "1:cdb899c199f907ac9fb50495ec71212c95cb5b0e0a8ee0800da0238036091033" + name = "github.com/mattn/go-runewidth" + packages = ["."] + pruneopts = "UT" + revision = "ce7b0b5c7b45a81508558cd1dba6bb1e4ddb51bb" + version = "v0.0.3" + +[[projects]] + branch = "master" + digest = "1:01d9e47830ef6077fb6f91033b0e83f324ad5966d11ed3daa4a5822ace876dab" + name = "github.com/nsf/termbox-go" + packages = ["."] + pruneopts = "UT" + revision = "60ab7e3d12ed91bc1b2486559c4b3a6b62297577" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + input-imports = [ + "github.com/mattn/go-runewidth", + "github.com/nsf/termbox-go", + ] + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml new file mode 100644 index 0000000..4b2f6fd --- /dev/null +++ b/Gopkg.toml @@ -0,0 +1,11 @@ +[[constraint]] + name = "github.com/mattn/go-runewidth" + version = "0.0.3" + +[[constraint]] + branch = "master" + name = "github.com/nsf/termbox-go" + +[prune] + go-tests = true + unused-packages = true diff --git a/README.md b/README.md index 4318758..355385f 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Note: go version 1.10 or higher is required building it from the source. ```bash git clone https://github.com/Microsoft/ethr.git cd ethr +dep ensure -v go build ```