go-pg / migrations

SQL database migrations for Golang go-pg and PostgreSQL
https://godoc.org/github.com/go-pg/migrations
BSD 2-Clause "Simplified" License
309 stars 59 forks source link

Use absolute path inside embed example #102

Closed jmattheis closed 3 years ago

jmattheis commented 3 years ago

A relative path would be replaced with an absolute filepath of the host system that will be invalid inside the go embed filesystem.

vmihailenco commented 3 years ago

@jmattheis thanks for the PR. Please try v8.0.2 that does not have filepath.Abs in DiscoverSQLMigrationsFromFilesystem. I believe that fixes this problem.

jmattheis commented 3 years ago

Seems like it should work.