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

Wrapping guid.NewV4() to get prior behavior returning a single value. #77

Open
wants to merge 1 commit into
base: v1
Choose a base branch
from

Conversation

pascallouisperez
Copy link

@pascallouisperez pascallouisperez commented Jan 7, 2018

Recently, the go.uuid library was modified to return a string, and an error when generating UUIDs. See [1]. For backwards compatibility, a Must func helper is provided which panics if there are any errors, reovering the prior behavior.

[1] satori/go.uuid@0ef6afb

Recently, the go.uuid library was modified to return a string, and an error when generating UUIDs. See [1]. For backwards compatibility, a Must func helper is provided which panics if there are any errors, reovering the prior behavior.

[1] satori/go.uuid@0ef6afb#diff-18f04d9ad3369192f1154eb2a981af41
pascallouisperez added a commit to homelight/worksheets that referenced this pull request Jan 8, 2018
Recently [1], satori/go.uuid changed the signature of various functions, including NewV4 used by sqlx runner. As a result, sqlx runner does not compile at HEAD anymore. A change was submitted to sqlx runner [2], but meanwhile, to keep our build green, we're forcibly setting the satory/go.uuid version to a specific sha. This approach is chosen over vendoring since the intent of worksheets is to be used as a library in a project which would itself manage vendoring.

[1] satori/go.uuid@0ef6afb
[2] mgutz/dat#77
pascallouisperez added a commit to homelight/worksheets that referenced this pull request Jan 8, 2018
Recently [1], satori/go.uuid changed the signature of various functions, including NewV4 used by sqlx runner. As a result, sqlx runner does not compile at HEAD anymore. A change was submitted to sqlx runner [2], but meanwhile, to keep our build green, we're forcibly setting the satory/go.uuid version to a specific sha. This approach is chosen over vendoring since the intent of worksheets is to be used as a library in a project which would itself manage vendoring.

[1] satori/go.uuid@0ef6afb
[2] mgutz/dat#77
@pascallouisperez
Copy link
Author

Hey @mgutz, can you review?

@pascallouisperez
Copy link
Author

Ping @mgutz!

@keenan-v1
Copy link

@mgutz - Please accept this PR. While I love dat, failing to accept this PR breaks builds. (Hopefully the dep versioning coming will help us..)

If this is no longer being maintained, please notify so someone may fork and continue your great work.

@pascallouisperez
Copy link
Author

We ended up forking given the lack of response.

See https://github.com/helloeave/dat

cc @xorith

Thanks @cbelsole for doing all the leg work!

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