Skip to content

Commit

Permalink
Don't include uds-remote-store.md from a header file
Browse files Browse the repository at this point in the history
Closes #8484.
  • Loading branch information
edolstra committed Jun 12, 2023
1 parent 03f9ff6 commit 87c66f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 8 additions & 0 deletions src/libstore/uds-remote-store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@

namespace nix {

std::string UDSRemoteStoreConfig::doc()
{
return
#include "uds-remote-store.md"
;
}


UDSRemoteStore::UDSRemoteStore(const Params & params)
: StoreConfig(params)
, LocalFSStoreConfig(params)
Expand Down
7 changes: 1 addition & 6 deletions src/libstore/uds-remote-store.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ struct UDSRemoteStoreConfig : virtual LocalFSStoreConfig, virtual RemoteStoreCon

const std::string name() override { return "Local Daemon Store"; }

std::string doc() override
{
return
#include "uds-remote-store.md"
;
}
std::string doc() override;
};

class UDSRemoteStore : public virtual UDSRemoteStoreConfig, public virtual LocalFSStore, public virtual RemoteStore
Expand Down

0 comments on commit 87c66f6

Please sign in to comment.