Skip to content

Replace hashicorp/go-uuid import with gofrs/uuid#211

Merged
pierreprinetti merged 1 commit intogophercloud:masterfrom
awels:remove_gouuid
May 29, 2024
Merged

Replace hashicorp/go-uuid import with gofrs/uuid#211
pierreprinetti merged 1 commit intogophercloud:masterfrom
awels:remove_gouuid

Conversation

@awels
Copy link
Copy Markdown
Contributor

@awels awels commented May 29, 2024

Replace import of hashicorp/go-uuid as its license MPL 2.0 is not incompatible with the license of the project Apache 2.0. Instead use gofrs/uuid which is compatible. It uses an MIT license.

@awels awels changed the title Remove go-uuid import Replace hashicorp/go-uuid import with google/uuid May 29, 2024
@pierreprinetti
Copy link
Copy Markdown
Member

I am not sure why MPL would be incompatible with this project, but I like the idea of switching to a compliant UUIDv4 generator. What do you think of https://github.com/gofrs/uuid which is also MIT?

@awels
Copy link
Copy Markdown
Contributor Author

awels commented May 29, 2024

MPL 2.0 is not compatible with Apache 2.0. The project I work on has a license scanner and it flagged the go-uuid dependency as incompatible. I traced it coming from gophercloud as we don't import it ourselves.

I am fine with gofrs. I picked the google one, but if you prefer gofrs that works for me.

Replace import of hashicorp/go-uuid as its license
is not incompatible with the license of the project.
Instead use gofrs/uuid which is compatible. It uses
an MIT license.

Signed-off-by: Alexander Wels <awels@redhat.com>
@awels awels changed the title Replace hashicorp/go-uuid import with google/uuid Replace hashicorp/go-uuid import with gofrs/uuid May 29, 2024
@pierreprinetti
Copy link
Copy Markdown
Member

Well, thank you then!

@awels
Copy link
Copy Markdown
Contributor Author

awels commented May 29, 2024

Updated the PR to replace it with gofrs/uuid instead.

@pierreprinetti pierreprinetti merged commit bdd9ea7 into gophercloud:master May 29, 2024
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

Successfully merging this pull request may close these issues.

2 participants