Open kekskurse opened 3 years ago
Thanks for opening this issue.
Looking through packr/v2's code, I cannot see why this will be happening. If you can share your code, along with a sample of your migration files so I can replicate, that would be helpful.
You should also send in a PR so we can review these changes. I could make them myself, but since you already fixed it, I think it should be you.
However, if you're writing a new project, using Packr may not be the best choice.
I can see that golang-migrate does not yet have migration sources for these, but shouldn't be too difficult to write one.
I had the issue that if i use this package to get the migration i got the file content two times back e.g.
migration_file_name.sql
the mysql drive got the following query to execute
i fixed it by replacing the box.Open with box.Find and return a new stream
Its just a learning project so its probably a issue in my code and i don't want to debug that part right now. I got the solution from this gist. I thought I let you know. Feel free to just close this issue.