Add godep dependency manager and makefile

This commit is contained in:
Anton Zhukov
2018-02-01 21:15:06 +01:00
parent e3b4d55af6
commit ae199860d2
5 changed files with 116 additions and 1 deletions

1
.gitignore vendored
View File

@@ -10,3 +10,4 @@ testdata/writefiletest
# InteliJ
.idea
*.iml
vendor/

63
Gopkg.lock generated Normal file
View File

@@ -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

42
Gopkg.toml Normal file
View File

@@ -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"

8
Makefile Normal file
View File

@@ -0,0 +1,8 @@
get:
dep ensure
build:
go build .
install:
go install

View File

@@ -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
```