goadesign / gorma

Storage generation plugin for Goa
http://goa.design
MIT License
140 stars 35 forks source link

Fix : multiple-value uuid.NewV4() in single-value context #162

Closed sulthonzh closed 6 years ago

sulthonzh commented 6 years ago

Fix : multiple-value uuid.NewV4() in single-value context For example :

Old : model.ID = uuid.NewV4() Fix: model.ID, _ = uuid.NewV4()

raphael commented 6 years ago

Thank you! could you please update the file .travis.yaml so that Travis uses Go 1.10? this should fix the build.

borovan-zz commented 6 years ago

I fixed it by changing the import to the patched goa/uuid. Not sure if that's a better fix or not! https://github.com/goadesign/gorma/pull/164

goa code:

https://github.com/goadesign/goa/blob/master/uuid/uuid.go

// NewV4 Wrapper over the real NewV4 method func NewV4() UUID { return UUID(uuid.Must(uuid.NewV4())) }