lix/src
Maximilian Bosch cd92ea5885
libstore/derivation-goal: avoid double-parsing of JSON messages
To avoid that JSON messages are parsed twice in case of
remote builds with `ssh-ng://`, I split up the original
`handleJSONLogMessage` into three parts:

* `parseJSONMessage(const std::string&)` checks if it's a message in the
  form of `@nix {...}` and tries to parse it (and prints an error if the
  parsing fails).
* `handleJSONLogMessage(nlohmann::json&, ...)` reads the fields from the
  message and passes them to the logger.
* `handleJSONLogMessage(const std::string&, ...)` behaves as before, but
  uses the two functions mentioned above as implementation.

In case of `ssh-ng://`-logs the first two methods are invoked manually.
2022-02-28 17:27:52 +01:00
..
build-remote Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
libcmd Replace defaultBla.$system with bla.$system.default 2022-02-22 11:47:41 +01:00
libexpr Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
libfetchers Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
libmain Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
libstore libstore/derivation-goal: avoid double-parsing of JSON messages 2022-02-28 17:27:52 +01:00
libutil libstore/derivation-goal: avoid double-parsing of JSON messages 2022-02-28 17:27:52 +01:00
nix Merge pull request #6072 from Ma27/fix-nix-why-depends-non-precise 2022-02-28 11:46:50 +01:00
nix-build Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
nix-channel Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
nix-collect-garbage Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
nix-copy-closure copyPaths: Pass store by reference 2021-07-22 09:59:51 +02:00
nix-env Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
nix-instantiate Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
nix-store Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00
resolve-system-dependencies Fix macOS build 2022-02-21 17:14:22 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00