go.rice icon indicating copy to clipboard operation
go.rice copied to clipboard

rice embed-go is freezing

Open guilhermehubner opened this issue 6 years ago • 2 comments

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.

guilhermehubner avatar Mar 08 '19 18:03 guilhermehubner

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 avatar Mar 16 '19 10:03 GeertJohan

@GeertJohan both of them work to me, but still I thinking it shouldn't freeze this way :stuck_out_tongue_closed_eyes:

guilhermehubner avatar Mar 19 '19 13:03 guilhermehubner