Remove dep files (#378)

* remove vendor directory
athens will be using Go modules for dependency management

* remove Gopkg.* files. athens will be using Go modules for dependency management

* add note about Go version required for developing on Athens
To use Go modules for dep management, you require atleast Go version 1.11

* update documentation regarding supported version of Go

* dont install dep

* re-add vendor directory
go mod vendor

* use vendored directory to carry out Go commands

* remove the use of -mod=vendor
this is necessary because;
1. we are running ci in a travis with a matrix of GO111MODULE=on & GO111MODULE=auto
and -mod=vendor is not available as an option in GO111MODULE=auto(inside GOPATH)

* rm vendor

* run go mod tidy
this is beacuse the master branch had changes to Gopkg.lock

* match gopkg.in/go-playground/validator.v9 version
with master branhc

* go mod tidy

* go mod vendor
so as to vendor the new changes that were added in master

* set GO111MODULE=on globally in ci

* build with -mod=vendor when building docker image

* use -mod=vendor to avoid getting deps from vcs in ci

* use -mod=vendor in .drone.yml

* use go1.11 in drone.yml
This commit is contained in:
Komu Wairagu
2018-09-02 18:54:42 +03:00
committed by Marwan Sulaiman
parent 29cb5c9561
commit 748ed7dda9
517 changed files with 60104 additions and 117724 deletions
+2 -2
View File
@@ -8,9 +8,9 @@ pipeline:
commands:
- sleep 15
build:
image: golang:1.10
image: golang:1.11
commands:
- go test ./...
- go test -mod=vendor ./...
services:
mongo: