diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2023-01-28 11:48:23 +0100 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2023-02-02 15:56:00 +0100 |
commit | 51013da9211b4f18ca97b7194788121c92094bb1 (patch) | |
tree | 7d470d74d210f209720f8731f736231c80029bac | |
parent | 04de0dd0b4059c75115c780dae8ddc49a847b0e5 (diff) |
perl: run `initLibStore()` on `openStore()`
Since #7478 it's mandatory that `initLibStore()` is called for store
operations. However that's not the case when running `openStore()` in
Perl using the perl-bindings. That breaks e.g. `hydra-eval-jobset` when
built against Nix 2.13 which uses small portions of the store API.
-rw-r--r-- | perl/lib/Nix/Store.xs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl/lib/Nix/Store.xs b/perl/lib/Nix/Store.xs index 54ad1680c..de91dc28d 100644 --- a/perl/lib/Nix/Store.xs +++ b/perl/lib/Nix/Store.xs @@ -26,6 +26,7 @@ static ref<Store> store() static std::shared_ptr<Store> _store; if (!_store) { try { + initLibStore(); loadConfFile(); settings.lockCPU = false; _store = openStore(); |