Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go build fails: github.com/coreos/etcd/client errors #32

Open
eschwartz opened this issue Nov 18, 2019 · 2 comments
Open

go build fails: github.com/coreos/etcd/client errors #32

eschwartz opened this issue Nov 18, 2019 · 2 comments

Comments

@eschwartz
Copy link
Contributor

I'm running make build, with go v0.13.4.
I get the following errors:

# github.com/coreos/etcd/client
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:63:14: z.HasExtensions undefined (type codec.genHelperEncoder has no field or method HasExtensions)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:63:35: z.EncExt undefined (type codec.genHelperEncoder has no field or method EncExt)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:75:6: r.WriteArrayElem undefined (type codec.genHelperEncDriver has no field or method WriteArrayElem)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:83:6: r.WriteMapElemKey undefined (type codec.genHelperEncDriver has no field or method WriteMapElemKey)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:84:19: too many arguments in call to r.encDriver.EncodeString
        have (number, string)
        want (string)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:85:6: r.WriteMapElemValue undefined (type codec.genHelperEncDriver has no field or method WriteMapElemValue)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:94:6: r.WriteArrayElem undefined (type codec.genHelperEncDriver has no field or method WriteArrayElem)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:99:20: too many arguments in call to r.encDriver.EncodeString
        have (number, string)
        want (string)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:102:6: r.WriteMapElemKey undefined (type codec.genHelperEncDriver has no field or method WriteMapElemKey)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:103:19: too many arguments in call to r.encDriver.EncodeString
        have (number, string)
        want (string)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:103:19: too many errors
make: *** [build] Error 2
~/dev/dce-cli$ go build .
# github.com/coreos/etcd/client
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:63:14: z.HasExtensions undefined (type codec.genHelperEncoder has no field or method HasExtensions)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:63:35: z.EncExt undefined (type codec.genHelperEncoder has no field or method EncExt)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:75:6: r.WriteArrayElem undefined (type codec.genHelperEncDriver has no field or method WriteArrayElem)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:83:6: r.WriteMapElemKey undefined (type codec.genHelperEncDriver has no field or method WriteMapElemKey)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:84:19: too many arguments in call to r.encDriver.EncodeString
        have (number, string)
        want (string)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:85:6: r.WriteMapElemValue undefined (type codec.genHelperEncDriver has no field or method WriteMapElemValue)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:94:6: r.WriteArrayElem undefined (type codec.genHelperEncDriver has no field or method WriteArrayElem)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:99:20: too many arguments in call to r.encDriver.EncodeString
        have (number, string)
        want (string)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:102:6: r.WriteMapElemKey undefined (type codec.genHelperEncDriver has no field or method WriteMapElemKey)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:103:19: too many arguments in call to r.encDriver.EncodeString
        have (number, string)
        want (string)
../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:103:19: too many errors
@eschwartz
Copy link
Contributor Author

eschwartz commented Nov 18, 2019

etcd-io/etcd#8715
^ may be relevant

@eschwartz
Copy link
Contributor Author

Ok, I was able to work around this by removing the ../../.gvm/pkgsets/go1.13.4/global/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go file.
I see there's a note in go.mod about this as well.

Let's try to find a fix for this, though. It's not a great experience for contributors that make build fails out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant