Merge pull request #2008 from thaJeztah/bump-golang-to-1.10
Bump to Go 1.10
This commit is contained in:
commit
255ad41cfc
@ -11,7 +11,9 @@ branches:
|
||||
environment:
|
||||
GOPATH: C:\gopath
|
||||
CGO_ENABLED: 1
|
||||
GO_VERSION: 1.9
|
||||
matrix:
|
||||
- GO_VERSION: 1.9
|
||||
- GO_VERSION: 1.10
|
||||
|
||||
before_build:
|
||||
- choco install -y mingw
|
||||
|
@ -7,7 +7,8 @@ services:
|
||||
language: go
|
||||
|
||||
go:
|
||||
- 1.9.x
|
||||
- "1.9.x"
|
||||
- "1.10"
|
||||
|
||||
go_import_path: github.com/containerd/containerd
|
||||
|
||||
@ -56,7 +57,7 @@ script:
|
||||
- script/validate/vendor
|
||||
- go build -i .
|
||||
- make check
|
||||
- if [ "$GOOS" = "linux" ]; then make check-protos check-api-descriptors; fi
|
||||
- if [[ "$GOOS" = "linux" && "$TRAVIS_GO_VERSION" != "1.9"* ]]; then make check-protos check-api-descriptors; fi
|
||||
- make build
|
||||
- make binaries
|
||||
- if [ "$GOOS" = "linux" ]; then sudo make install ; fi
|
||||
|
@ -158,9 +158,7 @@ func (m *ContainerCreate_Runtime) Field(fieldpath []string) (string, bool) {
|
||||
return "", false
|
||||
}
|
||||
|
||||
adaptor, ok := decoded.(interface {
|
||||
Field([]string) (string, bool)
|
||||
})
|
||||
adaptor, ok := decoded.(interface{ Field([]string) (string, bool) })
|
||||
if !ok {
|
||||
return "", false
|
||||
}
|
||||
|
@ -115,9 +115,7 @@ func (m *Envelope) Field(fieldpath []string) (string, bool) {
|
||||
return "", false
|
||||
}
|
||||
|
||||
adaptor, ok := decoded.(interface {
|
||||
Field([]string) (string, bool)
|
||||
})
|
||||
adaptor, ok := decoded.(interface{ Field([]string) (string, bool) })
|
||||
if !ok {
|
||||
return "", false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user