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
17 lines
487 B
Bash
Executable File
17 lines
487 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
# Limit dependencies to golang.org/x repos
|
|
go get -u \
|
|
golang.org/x/arch/x86/... \
|
|
golang.org/x/tools/go/...
|
|
|
|
# Install golangci-lint
|
|
golangci_lint_version='v1.12.3'
|
|
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin ${golangci_lint_version}
|
|
|
|
# embedmd required for documentation generation
|
|
go get -u github.com/campoy/embedmd
|
|
|
|
# covertool for merging coverage reports
|
|
go get -u github.com/dlespiau/covertool
|