From e6ba84ea50217c83d0aafdbbe7c5a659ba3e6586 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 10 Oct 2023 20:04:19 +0200 Subject: feat(tvix/store/protos): add Export Export will traverse a given PathInfo structure, and write the contents in NAR format to the passed Writer. It uses directoryLookupFn and blobLookupFn to resolve references. This is being moved over from nar-bridge. We need to keep the code there around until we can bump go.mod to storev1 with this merged, but the tests can already be moved entirely. Change-Id: Ie0de3077b09344cafa00ff1e2ddb8b52e9e631bc Reviewed-on: https://cl.tvl.fyi/c/depot/+/9602 Tested-by: BuildkiteCI Reviewed-by: Brian McGee Autosubmit: flokli --- tvix/store/protos/testdata/symlink.nar | Bin 0 -> 136 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tvix/store/protos/testdata/symlink.nar (limited to 'tvix/store/protos/testdata/symlink.nar') diff --git a/tvix/store/protos/testdata/symlink.nar b/tvix/store/protos/testdata/symlink.nar new file mode 100644 index 0000000000..7990e4ad5b Binary files /dev/null and b/tvix/store/protos/testdata/symlink.nar differ -- cgit 1.4.1