From e2a52407f8e093b9f05c4e10cac8ccebe5042b74 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sat, 11 May 2024 23:50:55 +0200 Subject: fix(users/Profpatsch/MonadPostgres): make sure no rc file is used Change-Id: Ia84de16fd41d00d81efd963f4ad42e069cf34ed5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11652 Reviewed-by: Profpatsch Autosubmit: Profpatsch Tested-by: BuildkiteCI --- users/Profpatsch/my-prelude/src/Postgres/MonadPostgres.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'users/Profpatsch/my-prelude/src/Postgres/MonadPostgres.hs') diff --git a/users/Profpatsch/my-prelude/src/Postgres/MonadPostgres.hs b/users/Profpatsch/my-prelude/src/Postgres/MonadPostgres.hs index 8d82eb553bd0..61428205c15f 100644 --- a/users/Profpatsch/my-prelude/src/Postgres/MonadPostgres.hs +++ b/users/Profpatsch/my-prelude/src/Postgres/MonadPostgres.hs @@ -660,7 +660,9 @@ pgFormatQueryByteString tools queryBytes = do (exitCode, stdout, stderr) <- Process.readProcessWithExitCode tools.pgFormat.toolPath - ["-"] + [ "--no-rcfile", + "-" + ] (queryBytes & bytesToTextUtf8Lenient & textToString) case exitCode of ExitSuccess -> pure (stdout & stringToText) -- cgit 1.4.1