Files
nix/src/libutil
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
..
2020-09-21 18:42:21 +02:00
2016-11-07 14:35:47 +01:00
2018-02-14 18:26:37 -05:00
2021-10-13 18:03:33 +00:00
2020-09-17 20:21:04 +02:00
2021-08-30 17:02:51 +02:00
2021-12-22 15:56:25 +01:00
2020-10-06 10:40:07 +02:00
2021-07-01 11:09:31 -07:00
2020-09-21 18:22:45 +02:00
2022-02-25 16:13:02 +01:00
2022-02-25 16:13:02 +01:00