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

Builds broken with latest go-codec change #8579

Closed
purpleidea opened this issue Sep 19, 2017 · 6 comments
Closed

Builds broken with latest go-codec change #8579

purpleidea opened this issue Sep 19, 2017 · 6 comments

Comments

@purpleidea
Copy link
Contributor

Recently ~23h ago:

ugorji/go@54210f4#diff-46a6c1a93a41b9397422576c715bf9f6L731

DecodeBytes changed from:

DecodeBytes(bs []byte, isstring, zerocopy bool) (bsOut []byte)

to:

DecodeStringAsBytes() (s []byte)

Etcd is using the old version here: https://github.com/coreos/etcd/blob/5bb9f9591f01d0a3c61d2eb3a3bb281726005b2b/client/keys.generated.go#L192 (current git master)

This broke all the builds using git master, and will be yet another thing to track down and fix if we ever want to increase the go-codec version. This is one of the reasons I argue against vendoring anything that doesn't require vendoring, because it makes it hard to move everything forward, instead of fixing one small thing at a time.

It was caught here: https://travis-ci.org/purpleidea/mgmt/jobs/277369429#L779 in our cron tests for https://github.com/purpleidea/mgmt/ since we use only the minimal subset of etcd that requires vendoring.

@gyuho
Copy link
Contributor

gyuho commented Sep 19, 2017

Duplicate #8573?

purpleidea added a commit to purpleidea/mgmt that referenced this issue Sep 19, 2017
Recent git master 54210f4e076c57f351166f0ed60e67d3fca57a36 of
github.com/ugorji/go broke the builds. See:
etcd-io/etcd#8579
@purpleidea
Copy link
Contributor Author

purpleidea commented Sep 19, 2017

@gyuho

yeah I think so. I searched issues, but didn't see it, sorry. I'd close that one as this one has more information, but it's up to you, and it's definitely a dupe :)

@gyuho
Copy link
Contributor

gyuho commented Sep 20, 2017

Closing via #8574.

Thanks.

@gyuho gyuho closed this as completed Sep 20, 2017
@purpleidea
Copy link
Contributor Author

Thanks! (Could we use this opportunity to unvendor libs like this that don't need to be stuck at a specific version?)

@purpleidea
Copy link
Contributor Author

LMK if you'd like a patch for that.

@gyuho
Copy link
Contributor

gyuho commented Sep 20, 2017

@purpleidea github.com/ugorji/go/codec still needs to be vendored for etcd/client package. Even if it's only for generated code, seems like a good idea to have pinned version of it in glide.yaml.

LuausDalmolin pushed a commit to LuausDalmolin/mgmt that referenced this issue Aug 24, 2022
Recent git master 54210f4e076c57f351166f0ed60e67d3fca57a36 of
github.com/ugorji/go broke the builds. See:
etcd-io/etcd#8579
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants