ci: do not use go modules

Attempt to fix a stream of CI failures that started on the addition of
Go modules.

I wonder if we are falling foul of this warning in the wiki
https://github.com/golang/go/wiki/Modules.

"The module cache in Go 1.11 can sometimes cause various errors,
primarily if there were previously network issues or multiple go
commands executing in parallel (see #26794, which is addressed for Go
1.12). As a troubleshooting step, you can copy $GOPATH/pkg/mod to a
backup directory (in case further investigation is warranted later), run
go clean -modcache, and then see whether the original problem persists."

Updates #21
This commit is contained in:
Michael McLoughlin
2019-01-06 20:35:58 -08:00
parent e7a6e2cb2a
commit 64026d252c
2 changed files with 4 additions and 4 deletions

View File

@@ -1,8 +1,6 @@
language: go language: go
go: go:
- 1.11.1 - 1.11.1
env:
- GO111MODULE=on
install: install:
- ./script/bootstrap - ./script/bootstrap
script: script:

View File

@@ -1,7 +1,9 @@
#!/bin/bash -ex #!/bin/bash -ex
# Install go module dependencies. # Limit dependencies to golang.org/x repos
go mod download go get -u \
golang.org/x/arch/x86/... \
golang.org/x/tools/go/...
# Install golangci-lint # Install golangci-lint
golangci_lint_version='v1.12.3' golangci_lint_version='v1.12.3'