migrate icon indicating copy to clipboard operation
migrate copied to clipboard

what's the meaning of this error ?

Open jenil163 opened this issue 4 years ago • 5 comments

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 avatar Apr 29 '21 10:04 jenil163

@jenil163 Are you able to share how migrate.NewWIthDatabaseInstance is called and what version of migrate you're using?

loozhengyuan avatar Apr 30 '21 02:04 loozhengyuan

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 .

jenil163 avatar Apr 30 '21 02:04 jenil163

"github.com/golang-migrate/migrate/v4" migrate.NewWithDatabaseInstance("file://"+args.Source, "postgres", driver)

jenil163 avatar Apr 30 '21 04:04 jenil163

It looks like you might be encountering a known issue with Windows file paths.

dhui avatar May 11 '21 06:05 dhui

+1 Same problem here with the windows path.

bearbite avatar Jan 14 '22 08:01 bearbite