1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-01 14:41:00 +01:00
nix/src
John Ericson ab822af0df Factor out serialization for BuildResult
Worker Protocol:

Note that the worker protocol already had a serialization for
`BuildResult`; this was added in
a4604f1928. It didn't have any versioning
support because at that time reusable seralizers were not away for the protocol
version. It could thus only be used for new messages also introduced in
that commit.

Now that we do support versioning in reusable serializers, we can expand
it to support all known versions and use it in many more places.

The exist test data becomes the version 1.29 tests: note that those
files' contents are unchanged. 1.28 and 1.27 tests are added to cover
the older code-paths.

The keyered build result test only has 1.29 because the keying was also
added in a4604f1928; the older
serializations are always used unkeyed.

Serve Protocol:

Conversely, no attempt was made to factor out such a serializer for the
serve protocol, so our work there in this commit for that protocol
proceeds from scratch.
2023-10-20 15:19:28 -04:00
..
build-remote Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
libcmd Remove fetchers::Tree and move tarball-related stuff into its own header 2023-10-20 19:56:52 +02:00
libexpr Remove fetchers::Tree and move tarball-related stuff into its own header 2023-10-20 19:56:52 +02:00
libfetchers Remove fetchers::Tree and move tarball-related stuff into its own header 2023-10-20 19:56:52 +02:00
libmain Rename an identifier of ours called stdout 2023-09-20 09:04:42 -04:00
libstore Factor out serialization for BuildResult 2023-10-20 15:19:28 -04:00
libutil Add helper function parseHashFormat[Opt] printHashFormat 2023-10-19 00:56:44 +08:00
nix Remove fetchers::Tree and move tarball-related stuff into its own header 2023-10-20 19:56:52 +02:00
nix-build printStats -> maybePrintStats 2023-10-09 16:34:35 +02:00
nix-channel Remove fetchers::Tree and move tarball-related stuff into its own header 2023-10-20 19:56:52 +02:00
nix-collect-garbage Clean up a few things related to profiles (#8526) 2023-06-19 04:04:59 +00:00
nix-copy-closure Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
nix-env printStats -> maybePrintStats 2023-10-09 16:34:35 +02:00
nix-instantiate printStats -> maybePrintStats 2023-10-09 16:34:35 +02:00
nix-store Factor out serialization for BuildResult 2023-10-20 15:19:28 -04:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00