Re:Can we trust Microsoft with open source?
by stardenburden on Saturday October 23, 2021 @06:21PM
(#28972944)
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.
[ Parent
| on HN ]
Re:Can we trust Microsoft with open source?
by steve-chavez on Saturday October 23, 2021 @09:06PM
(#28973933)
That'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...
Re:Can we trust Microsoft with open source?
by whateveracct on Saturday October 23, 2021 @11:50PM
(#28974819)
You 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