//nix/readTree: allow specific subdirectories to opt out

#244
Opened by flokli at 2023-01-30T14·53+00

Currently, readTree only has a mechanism to declare all children of a folder with a .skip-subtree file as off-limits:

.
├── a
│   └── default.nix
├── b
│   └── default.nix
├── default.nix
└── .skip-subtree

This will cause both //a and //b to be ignored.

If I want to only have //b to be ignored, there's no way to express that.

Worse, it's also not possible to shadow b by (re)defining it in /default.nix, as it seems children get merged after the main attrset.

I think there should be an additional .skip-tree file, that would allow b to get skipped like this:

.
├── a
│   └── default.nix
├── b
│   ├── default.nix
│   └── .skip-tree
└── default.nix

  1. flokli updated the body of this issue at 2023-01-30T14·54+00
  2. Implemented in cl/8185

    tazjin at 2023-02-28T10·48+00

  3. tazjin closed this issue at 2023-02-28T12·22+00