migrate
migrate copied to clipboard
what's the meaning of this error ?
ts=2021-04-29T10:33:42.832147Z caller=migrate.go:38 err="migrate.runMigration: migrate.NewWithDatabaseInstance: parse "file://C:\\Users\\shah.jenilkumar\\Desktop\\add\\knowhere\\.migrations": invalid port ":\\Users\\shah.jenilkumar\\Desktop\\add\\knowhere\\.migrations" after host" exit status 1
go version go1.16.2 os :windows
@jenil163 Are you able to share how migrate.NewWIthDatabaseInstance is called and what version of migrate you're using?
Sure
On Fri, Apr 30, 2021, 7:36 AM ZhengYuan Loo @.***> wrote:
@jenil163 https://github.com/jenil163 Are you able to share how migrate.NewWIthDatabaseInstance is called and what version of migrate you're using?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/golang-migrate/migrate/issues/552#issuecomment-829745265, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMZTQENINHF6EQXPVC5O2ZLTLIGBTANCNFSM43ZUINTA .
"github.com/golang-migrate/migrate/v4" migrate.NewWithDatabaseInstance("file://"+args.Source, "postgres", driver)
It looks like you might be encountering a known issue with Windows file paths.
+1 Same problem here with the windows path.