rubenv / sql-migrate

SQL schema migration tool for Go.
MIT License
3.24k stars 280 forks source link

File does not exist with `pkger` #171

Closed jufemaiz closed 4 years ago

jufemaiz commented 4 years ago

Hi team, love sql-migrate but have found an issue working with it and using the https://github.com/markbates/pkger/ solution for embedding static files.

Like https://github.com/rubenv/sql-migrate/issues/167 we are seeing issues related to file not found when traversing the files in the migration directory.

The steps used in sql-migrate are:

Changing this to the following resolves this issue:

file, err := dir.Open(fmt.Sprintf("/%s"), info.Name())