3 ms·
While I'm also a big fan of nix and friends, one big issue with this is that setting up databases, or in general services, with nix-shell is impossible.
by stardenburden 5y ago
While I'm also a big fan of nix and friends, one big issue with this is that setting up databases, or in general services, with nix-shell is impossible.
- steve-chavez 5y agoThat's not true. For example, in PostgREST we setup a nix-shell[1] that allows us to run tests in different PostgreSQL versions(from 9.6 to 14). [1]: https://github.com/PostgREST/postgrest/tree/main/nix#working-with-nix-shell-and-the-postgrest-utility-scripts https://github.com/PostgREST/postgrest/tree/main/nix#working...
- whateveracct 5y agoYou can usually script the database setup and teardown and have the test suite use the same scripts you have available in a nix-shell. pg_tmp [1] also helps http://eradman.com/ephemeralpg/ http://eradman.com/ephemeralpg/