cve-2018-1002105
cve-2018-1002105 copied to clipboard
issue with go
Hi,
This is the output I'm getting when running "go get github.com/gravitational/cve-2018-1002105"
# github.com/gravitational/cve-2018-1002105/vendor/sigs.k8s.io/yaml
../../go/src/github.com/gravitational/cve-2018-1002105/vendor/sigs.k8s.io/yaml/yaml.go:42:48: undefined: DisallowUnknownFields
# github.com/gravitational/cve-2018-1002105/vendor/k8s.io/client-go/transport
../../go/src/github.com/gravitational/cve-2018-1002105/vendor/k8s.io/client-go/transport/round_trippers.go:437:9: undefined: strings.Builder
Any help would be very appreciated.
Thanks
What version of go do you have on you're system?
I'm not sure about the first issue, but strings.Builder should be part of go's stdlib, which if it can't be found, leads me to suspect you might have an old version of go?
I'm not able to reproduce when using:
go version
go version go1.10 linux/amd64
Those users on RHEL 7 in corporate environments are limited to "go version 1.9.4". It would be great if this could be backwards compatible with that version.
According to this issue the "DisallowUnknownFields" is only in 1.10+
https://github.com/kubernetes/kubectl/issues/418
We're winding down the Gravity project, and with it, this repo.