Skip to content

Commit

Permalink
Merge pull request #9876 from edolstra/store-settings
Browse files Browse the repository at this point in the history
Don't include store docs in every manpage
  • Loading branch information
edolstra authored Jan 29, 2024
2 parents 44a0d04 + baff34d commit e9c8e85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions doc/manual/generate-manpage.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ let

maybeProse =
# FIXME: this is a horrible hack to keep `nix help-stores` working.
# the correct answer to this is to remove that command and replace it
# by statically generated manpages or the output of something like `nix
# store info <store type>`.
let
help-stores = ''
${index}
Expand All @@ -121,7 +118,7 @@ let
};
in
optionalString (details ? doc) (
if match "@store-types@" details.doc != [ ]
if match ".*@store-types@.*" details.doc != null
then help-stores
else details.doc
);
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/libstore/serve-protocol.cc
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ TEST_F(ServeProtoTest, handshake_log)
toClient.create();
toServer.create();

ServeProto::Version clientResult, serverResult;
ServeProto::Version clientResult;

auto thread = std::thread([&]() {
FdSink out { toServer.writeSide.get() };
Expand All @@ -425,7 +425,7 @@ TEST_F(ServeProtoTest, handshake_log)
{
FdSink out { toClient.writeSide.get() };
FdSource in { toServer.readSide.get() };
serverResult = ServeProto::BasicServerConnection::handshake(
ServeProto::BasicServerConnection::handshake(
out, in, defaultVersion);
};

Expand Down

0 comments on commit e9c8e85

Please sign in to comment.