* Set GO111MODULE to auto in golint script– #1743
As mentioned in #1743 the Go modules environment flag is set to `off`
in the script which appears to cause a warning message for each module
of the codebase that it is "not in GOROOT".
Set to `auto` as this allows the same build to be run the original way
should someone choose to delete the `go.mod` file from the project root.
* Remove redundant code – golint script
Go 1.17 ignores `GO111MODULE` and there are no directories in the
project root called `mock`.
* Replace `golint` with `go vet`
`golint` is deprecated (and frozen) replace with the current `go vet`.
This reported one issue on `main` branch:
```pkg/stash/with_etcd.go:33:28:
loop variable ep captured by func literal```
Fixed loop variable capture with extraction to parameterised anonymous
function passed loop variable and passed in to `errgroup.Go` call.
* Finish Removing `golint`
Removed remaining references to `golint` in dev doc, Makefile,
bash scripts, and powershell build scripts.
Removed `get_dev_tools.sh` and `get_dev_tools.ps1` as they only install
the removed `golint` package.
* Switching to using the main default branch
* changing links to main branch, not master branch
* Changing a few links to relative
* Bumping chart version
Co-authored-by: Marwan Sulaiman <marwan.sameer@gmail.com>
* cleanup tests and change minio port
* fix cleanup
* cleanup
* fix config test
* add comment to travis
* revert to generic minio addr
* fix test
* switch to test config
* adapt timeouts
* use example config
* fix test... again
* add new lines
* 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
* update travis to Go 1.11
* update check_deps ci script
ci for checking dependencies should now check Go module files and use go mod verify
* remove uneeded comment
* set GO111MODULE
* debug GO111MODULE propagation
* rm dep installation
* debug GO111MODULE propagation
* rm debug statements
* use Go point releases in ci
* remove references to Go1.11 RCs
* run ci with GO111MODULE auto and also on
* use matrix
* port scripts to ps
* remove ps core features
* init script
* make it work on ps 5.0
* sync with make file
* cleanup
* cleanup
* review feedback
* newline