Skip to content

Commit

Permalink
perl: run initLibStore() on openStore()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ma27 committed Feb 2, 2023
1 parent 04de0dd commit 51013da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions perl/lib/Nix/Store.xs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static ref<Store> store()
static std::shared_ptr<Store> _store;
if (!_store) {
try {
initLibStore();
loadConfFile();
settings.lockCPU = false;
_store = openStore();
Expand Down

0 comments on commit 51013da

Please sign in to comment.