Closed dor-utila closed 2 years ago
I get this error when I try to run psql.Start()
I am using an alpine 12.6 postgres container
psql := epsql.NewDatabase(epsql.DefaultConfig().
Username(username).
Password(password).
Port(port).
RuntimePath(fmt.Sprintf("/tmp/encourage_epsql_%d", getInstanceID())).
Logger(nil),
)
c := make(chan os.Signal)
signal.Notify(c, os.Interrupt)
go func() {
select {
case sig := <-c:
fmt.Printf("Got %s signal. Aborting...\n", sig)
psql.Stop()
os.Exit(1)
}
}()
err = psql.Start()
go run gen/modelgen/*.go
panic: no version found matching 12.6.0
Hey @OnigiriJack what embedded-postgres version/tag are you running? I assume it's https://github.com/fergusstrange/embedded-postgres/releases/tag/v1.5.0 as I think that matched Postgres 12.6.
Currently, I get this error, without any useful information: