Fix CI due to Golang 1.10.6 / 1.11.3 regressions (workaround)

Attempt to fix CI is failing due to a regression in Go 1.10.6 / 1.11.3 (see https://github.com/golang/go/issues/29241)

```
package github.com/containernetworking/plugins/...: github.com/containernetworking/plugins/...: invalid import path: malformed import path "github.com/containernetworking/plugins/...": double dot
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2018-12-14 15:10:49 +01:00
parent cc06a65a79
commit 52de371700
3 changed files with 16 additions and 3 deletions

View File

@@ -25,7 +25,12 @@ CNI_COMMIT=$(grep containernetworking/plugins ${GOPATH}/src/github.com/container
CNI_DIR=/opt/cni
CNI_CONFIG_DIR=/etc/cni/net.d
go get -d github.com/containernetworking/plugins/...
# FIXME temporarily disabled due to a regression in Go 1.10.6 / 1.11.3 (https://github.com/golang/go/issues/29241)
# go get -d github.com/containernetworking/plugins/...
go get -d github.com/containernetworking/plugins || true
PACKAGES=$(go list github.com/containernetworking/plugins/... | grep -v /vendor/)
go get -d ${PACKAGES}
cd $GOPATH/src/github.com/containernetworking/plugins
git checkout $CNI_COMMIT
FASTBUILD=true ./build.sh