diff options
author | Florian Klink <flokli@flokli.de> | 2024-04-12T16·23+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-04-13T10·44+0000 |
commit | a4f65ddba06f1170905f7f0ea03616bd690b13d0 (patch) | |
tree | c628a507c2247780fe836cbcac6746bb87ac0016 /tvix/store/Cargo.toml | |
parent | 863c4207cc2adbbcbfa539fbfb4765c135801e77 (diff) |
feat(tvix/store/bin): add "copy" command r/7900
This allows copying individual store paths from the local /nix/store into tvix-store. As we don't support getting this information from Nix yet, we currently expect metadata to be provided externally: Nix' `exportReferencesGraph` feature contains pretty much all data we need for this. Expect a list of this information at a well-known key (`closure`, similar to nixpkgs' `pkgs/build-support/binary-cache/ default.nix`). We currently simply upload all store paths sequentially, without any parallelism or awareness in how the reference graph looks like. As long as the connected stores don't enforce this, this is fine, at least for now. Change-Id: Ib83c998465adddfdb110db994843c44e26b3d3d8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11397 Reviewed-by: raitobezarius <tvl@lahfa.xyz> Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/store/Cargo.toml')
-rw-r--r-- | tvix/store/Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/store/Cargo.toml b/tvix/store/Cargo.toml index dee959b4de9d..a62d57837013 100644 --- a/tvix/store/Cargo.toml +++ b/tvix/store/Cargo.toml @@ -21,6 +21,7 @@ opentelemetry = { version = "0.21.0", optional = true} opentelemetry-otlp = { version = "0.14.0", optional = true } opentelemetry_sdk = { version = "0.21.0", features = ["rt-tokio"], optional = true} serde = { version = "1.0.197", features = [ "derive" ] } +serde_json = "1.0" serde_with = "3.7.0" serde_qs = "0.12.0" sha2 = "0.10.6" |