tvl-depot/tvix/docs
Florian Klink 6a116d5057 refactor(tvix/glue/register_in_path_info_service): return only PathInfo
The store path is already contained in the PathInfo, and the ca bits is
already passed into the function, so known to the caller - there's no
need to duplicate this.

We can also avoid having two separate block_on in our import builtin -
we already know the content hash before constructing, as we pass it in
via ca_hash.

There's still some room to unclutter some more of the code around
importing - we still do NAR calculation twice in some cases, and some of
the code might be share-able from other places producing PathInfo too.
Log a TODO for this cleanup.

Change-Id: I6a5fc427d15bc9293a396310143c7694dd2996c0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12592
Reviewed-by: Marijan Petričević <marijan.petricevic94@gmail.com>
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
2024-10-11 17:19:12 +00:00
..
src refactor(tvix/glue/register_in_path_info_service): return only PathInfo 2024-10-11 17:19:12 +00:00
theme feat(tvix/docs): ship custom highlight.js with Nix support 2024-03-03 16:53:16 +00:00
.gitignore feat(tvix/docs): switch to mdbook 2024-03-03 16:52:38 +00:00
book.toml docs(tvix): introduction 2024-07-04 14:18:09 +00:00
default.nix feat(tvix/docs): add d2 support 2024-06-14 07:04:23 +00:00
mdbook-admonish.css feat(tvix/docs): add mdbook-admonish 2024-06-14 07:04:23 +00:00
mdbook-extra.css docs: prompts in shell sessions shouldn’t be selectable 2024-06-27 07:16:23 +00:00
mdbook-extra.js docs(tvix): introduction 2024-07-04 14:18:09 +00:00