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

Error on 'go get' - impossible to build the suite #3

Closed
gagbo opened this issue Apr 11, 2018 · 3 comments
Closed

Error on 'go get' - impossible to build the suite #3

gagbo opened this issue Apr 11, 2018 · 3 comments

Comments

@gagbo
Copy link

gagbo commented Apr 11, 2018

Hello,

I'm not knowledgeable on Go, but running the go get command gives multiple errors on uuid :

$ go version
go version go1.10.1 linux/amd64
$ go get -u github.com/ops-class/test161/test161
# github.com/ops-class/test161
go/src/github.com/ops-class/test161/build.go:137:30: multiple-value uuid.NewV4() in single-value context
go/src/github.com/ops-class/test161/build.go:624:23: multiple-value uuid.NewV4() in single-value context
go/src/github.com/ops-class/test161/conf.go:166:19: multiple-value uuid.NewV4() in single-value context
go/src/github.com/ops-class/test161/conf.go:395:28: multiple-value uuid.NewV4() in single-value context
go/src/github.com/ops-class/test161/conf.go:494:30: multiple-value uuid.NewV4() in single-value context
go/src/github.com/ops-class/test161/mongopersist.go:214:28: multiple-value uuid.NewV4() in single-value context
go/src/github.com/ops-class/test161/submission.go:313:18: multiple-value uuid.NewV4() in single-value context
go/src/github.com/ops-class/test161/submission.go:620:22: multiple-value uuid.NewV4() in single-value context
go/src/github.com/ops-class/test161/usage.go:56:29: multiple-value uuid.NewV4() in single-value context

A little of Googling led me to satori/go.uuid#66 that seems to be the origin of the bug, so I think the only way to fix it is to either change the included dependency or see how the API has changed, but I'm not sure.

@Vikash082
Copy link

I see following lines in generator.go.

func NewV4() (UUID, error) {
return global.NewV4()
}

The function is changed and it breaking the earlier references.

@gchallen
Copy link
Member

@shaseley: is there a good fix for this?

@gagbo
Copy link
Author

gagbo commented Apr 11, 2018

Someone on the thread of the issue is giving alternatives that apparently kept the old API

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