Huangyan9188 / gogoprotobuf

Automatically exported from code.google.com/p/gogoprotobuf
Other
0 stars 0 forks source link

Custom type fails when path contains a dash "-" #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Test using github.com/satori/go.uuid.UUID as a custom type (works)
2. Instead use github.com/dynamic-design/go.uuid.UUID which is a fork without 
much changes
3. Will get "protoc-gen-gogo: error:bad Go source code was generated: 79:25: 
expected ';', found '-' (and 2 more errors)"
4. Simply removing the dash making it github.com/dynamicdesign/go.uuid makes it 
work (but wrong import path ofc)

Original issue reported on code.google.com by joa...@dynamic-design.se on 15 Aug 2014 at 7:06

GoogleCodeExporter commented 9 years ago
Thank you for reporting this, here is the fix.

https://code.google.com/p/gogoprotobuf/source/detail?r=6c980277330804e94257ac7ef
70a3adbe1641059

Original comment by awalterschulze on 18 Aug 2014 at 7:43