diff --git a/.travis.yml b/.travis.yml index 41426225a20..59fe5274bd6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,9 @@ language: go go: + - '1.9' + - '1.10' - '1.11.1' - - '1.12' go_import_path: github.com/prebid/prebid-server diff --git a/README.md b/README.md index 09741bc5ddf..21c13a56193 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ For more information, see: ## Installation -First install [Go 1.11](https://golang.org/doc/install) or later and [dep](https://golang.github.io/dep/docs/installation.html). Note that dep requires an explicit GOPATH to be set. +First install [Go 1.9.1](https://golang.org/doc/install) or later and [dep](https://golang.github.io/dep/docs/installation.html). Note that dep requires an explicit GOPATH to be set. ```bash export GOPATH=$(go env GOPATH) diff --git a/validate.sh b/validate.sh index 9771494d129..ef84eb7bd2e 100755 --- a/validate.sh +++ b/validate.sh @@ -57,7 +57,18 @@ if [ "$RACE" -ne "0" ]; then fi if $VET; then - COMMAND="go vet" + # Fix for the go 1.10 vet bug (https://github.com/w0rp/ale/issues/1358) + COMMAND="go tool vet -source *.go" echo "Running: $COMMAND" `$COMMAND` + for SOURCE in $GOGLOB ; do + # default call for wildcards and directories + COMMAND="go tool vet -source $SOURCE" + if [ -f $SOURCE ]; then + # file + COMMAND="go vet -source $SOURCE" + fi + echo "Running: $COMMAND" + `$COMMAND` + done fi