go.rice
go.rice copied to clipboard
rice embed-go is freezing
I just executed: rice embed-go -v and got the following output:
2019/03/08 17:41:01 embedding box '.' to 'rice-box.go'
2019/03/08 17:41:01 includes dir: ''
2019/03/08 17:41:01 includes file: 'queries.sql'
2019/03/08 17:41:01 includes file: 'rice-box.go'
And it freeze at this point; I think it could be caused by try adding rice-box.go on itself.
Hmm indeed. This is not possible. Adding the source code for a package as assets in rice is an edge case. Would one of the following solve your issue?
- Move queries.sql into a folder, e.g. "assets". Then use rice on that folder instead of
.. - Or use append, instead of embed-go.
@GeertJohan both of them work to me, but still I thinking it shouldn't freeze this way :stuck_out_tongue_closed_eyes: