From ae199860d239b964ec952be0e69c9792714e5168 Mon Sep 17 00:00:00 2001 From: Anton Zhukov Date: Thu, 1 Feb 2018 21:15:06 +0100 Subject: [PATCH] Add godep dependency manager and makefile --- .gitignore | 1 + Gopkg.lock | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ Gopkg.toml | 42 ++++++++++++++++++++++++++++++++++++ Makefile | 8 +++++++ README.md | 3 ++- 5 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 Gopkg.lock create mode 100644 Gopkg.toml create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 2d34abb6..e57ecdda 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ testdata/writefiletest # InteliJ .idea *.iml +vendor/ diff --git a/Gopkg.lock b/Gopkg.lock new file mode 100644 index 00000000..63cf9071 --- /dev/null +++ b/Gopkg.lock @@ -0,0 +1,63 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + branch = "v2" + name = "github.com/beatgammit/turnpike" + packages = ["."] + revision = "573f579df7ee6b7f2962625d35a624d11222f2ec" + +[[projects]] + name = "github.com/gorilla/context" + packages = ["."] + revision = "1ea25387ff6f684839d82767c1733ff4d4d15d0a" + version = "v1.1" + +[[projects]] + name = "github.com/gorilla/mux" + packages = ["."] + revision = "53c1911da2b537f792e7cafcb446b05ffe33b996" + version = "v1.6.1" + +[[projects]] + name = "github.com/gorilla/websocket" + packages = ["."] + revision = "ea4d1f681babbce9545c9c5f3d5194a789c89f5b" + version = "v1.2.0" + +[[projects]] + branch = "master" + name = "github.com/streamrail/concurrent-map" + packages = ["."] + revision = "8bf1e9bacbf65b10c81d0f4314cf2b1ebef728b5" + +[[projects]] + branch = "master" + name = "github.com/thrasher-/socketio" + packages = ["."] + revision = "38b9599889b97e3f897b32ca075eff4e5338342b" + +[[projects]] + branch = "master" + name = "github.com/toorop/go-pusher" + packages = ["."] + revision = "4549deda570234e4f8e9fd0d69c149d4dc07d0c9" + +[[projects]] + name = "github.com/ugorji/go" + packages = ["codec"] + revision = "9831f2c3ac1068a78f50999a30db84270f647af6" + version = "v1.1" + +[[projects]] + branch = "master" + name = "golang.org/x/net" + packages = ["websocket"] + revision = "309822c5b9b9f80db67f016069a12628d94fad34" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + inputs-digest = "044625dbd4ca2222e3d52af7e25d4636b9c7e7c3e5211694b549e8ed42c2b6d7" + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml new file mode 100644 index 00000000..cd73be2a --- /dev/null +++ b/Gopkg.toml @@ -0,0 +1,42 @@ + +# Gopkg.toml example +# +# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md +# for detailed Gopkg.toml documentation. +# +# required = ["github.com/user/thing/cmd/thing"] +# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] +# +# [[constraint]] +# name = "github.com/user/project" +# version = "1.0.0" +# +# [[constraint]] +# name = "github.com/user/project2" +# branch = "dev" +# source = "github.com/myfork/project2" +# +# [[override]] +# name = "github.com/x/y" +# version = "2.4.0" + + +[[constraint]] + branch = "v2" + name = "github.com/beatgammit/turnpike" + +[[constraint]] + name = "github.com/gorilla/mux" + version = "1.6.1" + +[[constraint]] + name = "github.com/gorilla/websocket" + version = "1.2.0" + +[[constraint]] + branch = "master" + name = "github.com/thrasher-/socketio" + +[[constraint]] + branch = "master" + name = "github.com/toorop/go-pusher" diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..28008a78 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +get: + dep ensure + +build: + go build . + +install: + go install \ No newline at end of file diff --git a/README.md b/README.md index 64533be8..c338ae1c 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,8 @@ platform. ```bash go get github.com/thrasher-/gocryptotrader cd $GOPATH/src/github.com/thrasher-/gocryptotrader -go install +make get +make install cp $GOPATH/src/github.com/thrasher-/gocryptotrader/config_example.json $GOPATH/bin/config.json ```