Merge pull request #486 from twhiston/dep

add dep
This commit is contained in:
Tom Whiston 2018-03-12 10:55:08 +01:00 committed by GitHub
commit e7de556eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 219 additions and 8 deletions

2
.gitignore vendored
View File

@ -11,3 +11,5 @@ caddyfile
cli/semaphore_*
*-packr.go
util/version.go
/vendor/
/coverage.out

View File

@ -4,6 +4,7 @@ When creating a pull-request you should:
- __Open an issue first:__ Confirm that the change or feature will be accepted
- __gofmt and vet the code:__ Use `gofmt`, `golint`, `govet` and `goimports` to clean up your code.
- __vendor dependencies with dep:__ Use `dep ensure --update` if you have added to or updated dependencies, so that they get added to the dependency manifest.
- __Update api documentation:__ If your pull-request adding/modifying an API request, make sure you update the swagger documentation (`api-docs.yml`)
# Installation in a development environment

142
Gopkg.lock generated Normal file
View File

@ -0,0 +1,142 @@
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
[[projects]]
name = "github.com/Sirupsen/logrus"
packages = ["."]
revision = "d682213848ed68c0a260ca37d6dd5ace8423f5ba"
version = "v1.0.4"
[[projects]]
branch = "master"
name = "github.com/castawaylabs/mulekick"
packages = ["."]
revision = "7029fb389811e0f873c56cfbbda64d66af48b095"
[[projects]]
name = "github.com/go-sql-driver/mysql"
packages = ["."]
revision = "a0583e0143b1624142adab07e0e97fe106d99561"
version = "v1.3"
[[projects]]
name = "github.com/gobuffalo/packr"
packages = ["."]
revision = "6434a292ac52e6964adebfdce3f9ce6d9f16be01"
version = "v1.10.4"
[[projects]]
name = "github.com/google/go-github"
packages = ["github"]
revision = "e48060a28fac52d0f1cb758bc8b87c07bac4a87d"
version = "v15.0.0"
[[projects]]
branch = "master"
name = "github.com/google/go-querystring"
packages = ["query"]
revision = "53e6ce116135b80d037921a7fdd5138cf32d7a8a"
[[projects]]
name = "github.com/gorilla/context"
packages = ["."]
revision = "1ea25387ff6f684839d82767c1733ff4d4d15d0a"
version = "v1.1"
[[projects]]
name = "github.com/gorilla/handlers"
packages = ["."]
revision = "90663712d74cb411cbef281bc1e08c19d1a76145"
version = "v1.3.0"
[[projects]]
name = "github.com/gorilla/mux"
packages = ["."]
revision = "53c1911da2b537f792e7cafcb446b05ffe33b996"
version = "v1.6.1"
[[projects]]
name = "github.com/gorilla/securecookie"
packages = ["."]
revision = "e59506cc896acb7f7bf732d4fdf5e25f7ccd8983"
version = "v1.1.1"
[[projects]]
name = "github.com/gorilla/websocket"
packages = ["."]
revision = "ea4d1f681babbce9545c9c5f3d5194a789c89f5b"
version = "v1.2.0"
[[projects]]
branch = "master"
name = "github.com/lann/builder"
packages = ["."]
revision = "1b87b36280d04fe7882d1512bf038ea2967ad534"
[[projects]]
branch = "master"
name = "github.com/lann/ps"
packages = ["."]
revision = "62de8c46ede02a7675c4c79c84883eb164cb71e3"
[[projects]]
name = "github.com/masterminds/squirrel"
packages = ["."]
revision = "a6b93000bd219143c56c16e6cb1c4b91da3f224b"
version = "v1.0"
[[projects]]
name = "github.com/pkg/errors"
packages = ["."]
revision = "645ef00459ed84a119197bfb8d8205042c6df63d"
version = "v0.8.0"
[[projects]]
name = "github.com/russross/blackfriday"
packages = ["."]
revision = "55d61fa8aa702f59229e6cff85793c22e580eaf5"
version = "v1.5.1"
[[projects]]
branch = "master"
name = "golang.org/x/crypto"
packages = [
"bcrypt",
"blowfish",
"ssh/terminal"
]
revision = "c7dcf104e3a7a1417abc0230cb0d5240d764159d"
[[projects]]
branch = "master"
name = "golang.org/x/sys"
packages = [
"unix",
"windows"
]
revision = "7dca6fe1f43775aa6d1334576870ff63f978f539"
[[projects]]
name = "gopkg.in/asn1-ber.v1"
packages = ["."]
revision = "379148ca0225df7a432012b8df0355c2a2063ac0"
version = "v1.2"
[[projects]]
name = "gopkg.in/gorp.v1"
packages = ["."]
revision = "c87af80f3cc5036b55b83d77171e156791085e2e"
version = "v1.7.1"
[[projects]]
name = "gopkg.in/ldap.v2"
packages = ["."]
revision = "bb7a9ca6e4fbc2129e3db588a34bc970ffe811a9"
version = "v2.5.1"
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "fd98c9632d4a76491d66eb42e4dd5e6440b36405c061136afe7eb92196055d0f"
solver-name = "gps-cdcl"
solver-version = 1

63
Gopkg.toml Normal file
View File

@ -0,0 +1,63 @@
[[constraint]]
name = "github.com/Sirupsen/logrus"
version = "1.0.4"
[[constraint]]
branch = "master"
name = "github.com/castawaylabs/mulekick"
[[constraint]]
name = "github.com/go-sql-driver/mysql"
version = "1.3.0"
[[constraint]]
name = "github.com/gobuffalo/packr"
version = "1.10.4"
[[constraint]]
name = "github.com/google/go-github"
version = "15.0.0"
[[constraint]]
name = "github.com/gorilla/context"
version = "1.1.0"
[[constraint]]
name = "github.com/gorilla/handlers"
version = "1.3.0"
[[constraint]]
name = "github.com/gorilla/mux"
version = "1.6.1"
[[constraint]]
name = "github.com/gorilla/securecookie"
version = "1.1.1"
[[constraint]]
name = "github.com/gorilla/websocket"
version = "1.2.0"
[[constraint]]
name = "github.com/masterminds/squirrel"
version = "1.0.0"
[[constraint]]
name = "github.com/russross/blackfriday"
version = "1.5.0"
[[constraint]]
branch = "master"
name = "golang.org/x/crypto"
[[constraint]]
name = "gopkg.in/gorp.v1"
version = "1.7.1"
[[constraint]]
name = "gopkg.in/ldap.v2"
version = "2.5.1"
[prune]
go-tests = true
unused-packages = true

View File

@ -17,16 +17,14 @@ tasks:
deps:
desc: Install all dependencies
cmds:
- task: deps:tools
- task: deps:be
- task: deps:fe
- task: deps:watch
deps:be:
desc: Install golang tools for project building
desc: Vendor application dependencies
cmds:
- go get github.com/gobuffalo/packr/...
- go get github.com/mitchellh/gox
- go get -u github.com/haya14busa/goverage
- dep ensure -vendor-only
deps:fe:
desc: Installs npm requirements for front end from package.json
@ -36,12 +34,17 @@ tasks:
- npm i -g less pug-cli
- npm i async
deps:watch:
desc: Installs tools needed for watch commands
deps:tools:
desc: Installs tools needed
dir: public
cmds:
- npm install -g nodemon
- go get -u github.com/golang/dep/cmd/dep
- go get github.com/cespare/reflex
- go get -u github.com/gobuffalo/packr/...
- go get github.com/mitchellh/gox
- go get -u github.com/haya14busa/goverage
compile:
desc: Generates compiled frontend and backend resources (must be in this order)

View File

@ -14,7 +14,7 @@ dependencies:
- sudo tar -C /usr/local -xzf /tmp/go.tar.gz
- go get -u -v github.com/go-task/task/cmd/task
- go get github.com/schrej/godacov
- task deps
- cd ${CPATH}/${CIRCLE_PROJECT_REPONAME} && task deps
override:
- task compile