Skip to content

Cherry-pick #8458 to 6.x: Switch to different UUID lib due to non-random generated UUIDs#8640

Merged
kvch merged 1 commit intoelastic:6.xfrom
kvch:backport_8458_6.x
Oct 18, 2018
Merged

Cherry-pick #8458 to 6.x: Switch to different UUID lib due to non-random generated UUIDs#8640
kvch merged 1 commit intoelastic:6.xfrom
kvch:backport_8458_6.x

Conversation

@kvch
Copy link
Copy Markdown
Contributor

@kvch kvch commented Oct 18, 2018

Cherry-pick of PR #8458 to 6.x branch. Original message:

The previously used github.com/satori/go-uuid lib has a critical bug and it is no longer maintained. The community moved to an active fork of this existing lib named github.com/gofrs/uuid. I haven't seen other UUID libs worth mentioning apart from this.

Changes compared to the previous dependency:

  • uuid.NewV4 returns an error if the function call failed
  • uuid.Equal is deprecated and removed. The Way is to use == instead.

TODO

  • update github.com/elastic/go-ucfg

Closes #8077

Copy link
Copy Markdown
Contributor

@exekias exekias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WFG

…ic#8458)

The previously used `github.com/satori/go-uuid` lib has a critical bug and it is no longer maintained. The community moved to an active fork of this existing lib named `github.com/gofrs/uuid`. I haven't seen other UUID libs worth mentioning apart from this.

Changes compared to the previous dependency:
* `uuid.NewV4` returns an error if the function call failed
* `uuid.Equal` is deprecated and removed. The Way is to use `==` instead.

Closes elastic#8077
(cherry picked from commit 554ddcd)
@kvch kvch force-pushed the backport_8458_6.x branch from 6b92126 to 3b33008 Compare October 18, 2018 11:42
@kvch kvch merged commit 27a8ec0 into elastic:6.x Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants