markbates / pkger

Embed static files in Go binaries (replacement for gobuffalo/packr)
MIT License
1.18k stars 60 forks source link

Error while opening xx: file does not exist #111

Open storezhang opened 4 years ago

storezhang commented 4 years ago

image

migration.go migrations := &migrate.HttpFileSystemMigrationSource{ FileSystem: pkger.Dir("/db/migration"), }

setps

1.pkger

2.go build xx.go

3.run exe file, get error

sjwl commented 4 years ago

what if you replaced step 2 to

2.go build