cve-2018-1002105 icon indicating copy to clipboard operation
cve-2018-1002105 copied to clipboard

issue with go

Open syrius01 opened this issue 5 years ago • 2 comments

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

syrius01 avatar Dec 06 '18 06:12 syrius01

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

knisbet avatar Dec 06 '18 16:12 knisbet

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

therevoman avatar Dec 11 '18 01:12 therevoman

We're winding down the Gravity project, and with it, this repo.

wadells avatar Jun 28 '23 17:06 wadells