Results 61 comments of Harry Stern

@jacobsvante This is still happening on pgtemp 0.5?

Yes, they're in the tests/ directory. I just added the sample test from this issue so we'll see what happens: https://github.com/boustrophedon/pgtemp/actions/runs/13167858114

> Running tests/shutdown.rs (target/debug/deps/shutdown-9f5c6b24a836d5ff) > running 1 test > test pgtemp_shutdown_test ... ok The sample provided passed in CI (and then the build failed due to a linting error in...

I don't know what would have caused your tests to hang - If I remove the postgres install and PATH lines, the tests simply error out. https://github.com/boustrophedon/pgtemp/actions/runs/13188950120/job/36817698923

If you have the `$GITHUB_PATH` step in your github action, you probably need to do something like `sudo -E` so that the updated `$PATH` environment variable is carried over. However,...

> It works, I assume thanks to the sudo call in pgtemp. Ah, I had gone back and forth on whether to include that feature and forgot that I actually...

0.6.0 is out with bin_path https://docs.rs/pgtemp/0.6.0/pgtemp/struct.PgTempDBBuilder.html#method.with_bin_path

Thanks for using pgtemp! This looks fine but I'm wondering in what situations you need to set the config via initdb and not at runtime via the with_config_param option. Incidentally...

Do the test failures occur for you locally? If not it could be an issue with the version of postgres in github CI

That makes sense and is indeed stated in the documentation https://www.postgresql.org/docs/current/locale.html > Some locale categories must have their values fixed when the database is created. You can use different settings...