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

Quick & Dirty update to support upstream changes. #7

Merged
merged 2 commits into from
Jan 3, 2018

Conversation

dcarbone
Copy link
Contributor

@dcarbone dcarbone commented Jan 3, 2018

The upstream UUID package has changed the definition of NewV4 and as a result this package has broken.

I am not in love with this proposal, but it at least takes care of the immediate problem. I think ideally the methods should be updated to reflect the new multi-value returns seen upstream, but I did not want to destabilize head without discussion.

@lithammer
Copy link
Owner

Thanks! Just had a quick look at the upstream changes. And from the looks of things you could probably simplify this a bit by using the uuid.Must() helper.

I think this is good enough for now since it fixes master while still maintaining backwards compatibility. But should probably consider changing the function return signature to (string, error). Might even be a good idea to include a similar Must() helper.

@lithammer lithammer merged commit 84f2543 into lithammer:master Jan 3, 2018
@dcarbone
Copy link
Contributor Author

dcarbone commented Jan 3, 2018

Good catch! I was in a bit of a rush and didn't investigate too much. I've updated it to use the uuid.Must() helper.

@lithammer
Copy link
Owner

I released a new version (v2.0.1) too in case you're using that. I will probably hold off a bit on changing the return values until satori/go.uuid#66 has been resolved (be it closed or reverted).

@lithammer lithammer mentioned this pull request Feb 14, 2018
lithammer pushed a commit that referenced this pull request Feb 14, 2018
Given the recent issues with github.com/satori/go.uuid
(satori/go.uuid#66), which are still partly
unresolved, e.g. its master isn't compatible with us
(see #7, #8, #9, 10, #11 and #12).

Even though github.com/google/uuid is only at v0.1 and clearly states
this:

>This package is currently in development and the API may not be stable.
>
>The API will become stable with v1.

I suspect it's a better longterm investment.
lithammer pushed a commit that referenced this pull request Feb 14, 2018
Given the recent issues with github.com/satori/go.uuid
(satori/go.uuid#66), which are still partly
unresolved, e.g. its master isn't compatible with us
(see #7, #8, #9, 10, #11 and #12).

Even though github.com/google/uuid is only at v0.1 and clearly states
this:

>This package is currently in development and the API may not be stable.
>
>The API will become stable with v1.

I suspect it's a better longterm investment.
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.

None yet

2 participants