Skip to content

Commit

Permalink
Fix opening the local overlay store
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Feb 2, 2025
1 parent b8cdb21 commit cf5d50b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libstore/local-overlay-store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ std::string LocalOverlayStoreConfig::doc()
;
}

ref<Store> LocalOverlayStoreConfig::openStore() const
{
return make_ref<LocalOverlayStore>(ref{
std::dynamic_pointer_cast<const LocalOverlayStoreConfig>(shared_from_this())
});
}


Path LocalOverlayStoreConfig::toUpperPath(const StorePath & path) const
{
Expand Down
2 changes: 2 additions & 0 deletions src/libstore/local-overlay-store.hh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ struct LocalOverlayStoreConfig :

static std::string doc();

ref<Store> openStore() const override;

protected:
/**
* @return The host OS path corresponding to the store path for the
Expand Down

0 comments on commit cf5d50b

Please sign in to comment.