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

rice embed-go is freezing #137

Open
guilhermehubner opened this issue Mar 8, 2019 · 2 comments
Open

rice embed-go is freezing #137

guilhermehubner opened this issue Mar 8, 2019 · 2 comments

Comments

@guilhermehubner
Copy link

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.

@GeertJohan
Copy link
Owner

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.

@guilhermehubner
Copy link
Author

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

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

2 participants