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

use of internal uuid package causes errors in forks #5

Closed
cwinkler opened this issue Dec 16, 2016 · 7 comments
Closed

use of internal uuid package causes errors in forks #5

cwinkler opened this issue Dec 16, 2016 · 7 comments

Comments

@cwinkler
Copy link

Hi,

if someone wants to fork this package it throws an error on compiling/testing in the forked folder

package github.com/forkinguser/go.geteventstore
imports github.com/jetbasrawi/go.geteventstore/internal/uuid: use of internal package not allowed

I can't see the usefulness of including the satori/go.uuid package in the repository. A better solution would be to import the original package or getting rid of it completely requiring the user to provide a uuid on firing events.

Regards,

Chris

@jetbasrawi
Copy link
Owner

Hi Thanks for highlighting this I will do some testing on this and get back to you.

@setyven
Copy link

setyven commented Jan 18, 2017

This is a known issue with Go, because when forking the internal dependencies would still refer to the upstream repository. I'm facing this issue as well, been trying out some workarounds and haven't had luck so far.
This is a workaround that I found, let me know if it works for you @cwinkler http://blog.campoy.cat/2014/03/github-and-go-forking-pull-requests-and.html

@cwinkler
Copy link
Author

@setyven yeah this should work, thank you.

I love go but i hate it's package management...

@jetbasrawi
Copy link
Owner

Thanks all,

I will be having a look at this and other issues today.

@jetbasrawi
Copy link
Owner

@setyven & @cwinkler

Is it agreed that the issue is with Go package management and generally an issue with forking Go projects.

@cwinkler the reason I did not want to include satoris package as a dependency and rather copy it into the project was to make it easier for people to use the package as it requires no dependencies. Copying code into the project rather than including as a dependency has been recommended as an approach where possible by some in the go community and that is what I was trying to do here. Perhaps using internal is not the best approach. Open to discussion on how to deal with this matter.

@cwinkler
Copy link
Author

Since the EventID isn't necessarily a UUID I find it a bit odd to provide it automatically if an empty string is passed to NewEvent(). In order to know what kind of IDs are pushed to EventStore the User should provide his own ID.

But that are just my 2 cents. I'm fine with it as it is, my only problem was go's weird package management. As this is sorted out I can start implementing projection management into the client.

@jetbasrawi
Copy link
Owner

jetbasrawi commented Jan 19, 2017 via email

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

No branches or pull requests

3 participants