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
+1 -1
View File
@@ -1,3 +1,3 @@
$benchFiles = Get-ChildItem -Recurse -Filter "*storage*test.go" | Resolve-Path -Relative | Select-String -Pattern $(Join-Path "vendor" "") -NotMatch
& go test -v $benchFiles -bench=. -run=^$
& go test -mod=vendor -v $benchFiles -bench=. -run=^$
+1 -1
View File
@@ -12,4 +12,4 @@ Get-Content $envPath | ForEach-Object {
[System.Environment]::SetEnvironmentVariable($name, $val)
}
& go test -race -coverprofile cover.out -covermode atomic ./...
& go test -mod=vendor -race -coverprofile cover.out -covermode atomic ./...