summary refs log tree commit diff
path: root/lib/fileset/README.md
diff options
context:
space:
mode:
authorSilvan Mosberger <silvan.mosberger@tweag.io>2023-09-13 18:50:45 +0200
committerSilvan Mosberger <silvan.mosberger@tweag.io>2023-09-13 18:53:53 +0200
commit19b39dcc934aba37e39b5f492c2919dd93b74870 (patch)
tree35184a186a01641a4ee0ec6e9acda5d043e1b721 /lib/fileset/README.md
parent48abfde844547c1b62c8a082ccccd9caf2d650bd (diff)
downloadnixpkgs-19b39dcc934aba37e39b5f492c2919dd93b74870.tar
nixpkgs-19b39dcc934aba37e39b5f492c2919dd93b74870.tar.gz
nixpkgs-19b39dcc934aba37e39b5f492c2919dd93b74870.tar.bz2
nixpkgs-19b39dcc934aba37e39b5f492c2919dd93b74870.tar.lz
nixpkgs-19b39dcc934aba37e39b5f492c2919dd93b74870.tar.xz
nixpkgs-19b39dcc934aba37e39b5f492c2919dd93b74870.tar.zst
nixpkgs-19b39dcc934aba37e39b5f492c2919dd93b74870.zip
lib.fileset: Internal representation v1
Diffstat (limited to 'lib/fileset/README.md')
-rw-r--r--lib/fileset/README.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/fileset/README.md b/lib/fileset/README.md
index dbb591a4c8c..306dcdaa421 100644
--- a/lib/fileset/README.md
+++ b/lib/fileset/README.md
@@ -41,13 +41,21 @@ An attribute set with these values:
 - `_type` (constant string `"fileset"`):
   Tag to indicate this value is a file set.
 
-- `_internalVersion` (constant string equal to the current version):
-  Version of the representation
+- `_internalVersion` (constant `1`, the current version):
+  Version of the representation.
 
 - `_internalBase` (path):
   Any files outside of this path cannot influence the set of files.
   This is always a directory.
 
+- `_internalBaseRoot` (path):
+  The filesystem root of `_internalBase`, same as `(lib.path.splitRoot _internalBase).root`.
+  This is here because this needs to be computed anyways, and this computation shouldn't be duplicated.
+
+- `_internalBaseComponents` (list of strings):
+  The path components of `_internalBase`, same as `lib.path.subpath.components (lib.path.splitRoot _internalBase).subpath`.
+  This is here because this needs to be computed anyways, and this computation shouldn't be duplicated.
+
 - `_internalTree` ([filesetTree](#filesettree)):
   A tree representation of all included files under `_internalBase`.