aboutsummaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-02-01 16:46:26 +0100
committerRobert Hensing <robert@roberthensing.nl>2023-04-07 16:24:18 +0200
commita692c437298ad59004583f193ef3d73a378fd837 (patch)
treec6c9af6fcc5a859b0cf2db5d42b332072df6cbc3 /perl
parent6e0b7109abb40ded327b15599b29f861d9acb3c9 (diff)
Move loadConfFile() to initLibStore
Part of an effort to make it easier to initialize the right things, by moving code into the appropriate libraries. Using libstore without loading the config file is risky, as sqlite may then be misconfigured. See https://github.com/cachix/cachix/issues/475
Diffstat (limited to 'perl')
-rw-r--r--perl/lib/Nix/Store.xs1
1 files changed, 0 insertions, 1 deletions
diff --git a/perl/lib/Nix/Store.xs b/perl/lib/Nix/Store.xs
index de91dc28d..b3f192810 100644
--- a/perl/lib/Nix/Store.xs
+++ b/perl/lib/Nix/Store.xs
@@ -27,7 +27,6 @@ static ref<Store> store()
if (!_store) {
try {
initLibStore();
- loadConfFile();
settings.lockCPU = false;
_store = openStore();
} catch (Error & e) {