about summary refs log tree commit diff
path: root/users/Profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2024-05-11T21·50+0200
committerclbot <clbot@tvl.fyi>2024-05-13T14·56+0000
commite2a52407f8e093b9f05c4e10cac8ccebe5042b74 (patch)
tree3c9938dc7eafff2ec9e616eb567c2ca1a3b1c784 /users/Profpatsch
parenta6b4134468ad6a286a0caf9671ceab368a363192 (diff)
fix(users/Profpatsch/MonadPostgres): make sure no rc file is used r/8133
Change-Id: Ia84de16fd41d00d81efd963f4ad42e069cf34ed5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11652
Reviewed-by: Profpatsch <mail@profpatsch.de>
Autosubmit: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/Profpatsch')
-rw-r--r--users/Profpatsch/my-prelude/src/Postgres/MonadPostgres.hs4
1 files changed, 3 insertions, 1 deletions
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)