| 24 Nov 2025 |
goldstein | I found out that this actually isn’t enough
e.g. in builtins.fetchTree (builtins.parseFlakeRef "git+https://example.org/repo?dir=foo";) parseFlakeRef will include dir as an attr in a resolved flake ref, which fetchTree can’t deal with:
error: unsupported input attribute 'dir' for the 'git' scheme
| 19:17:26 |
goldstein | I can mention it in the issue ig, although I’m not sure that’s the same issue | 19:17:41 |
goldstein | cppnix has the same behaviour here | 19:18:06 |
goldstein | so you need a “sanitize” step in between that removes dir and maybe narHash | 19:18:55 |
goldstein | * so you need a “sanitize” step in between that removes dir ~and maybe narHash~ | 19:20:59 |
goldstein | * so you need a “sanitize” step in between that removes dir ~and maybe narHash~ | 19:21:05 |
goldstein | * so you need a “sanitize” step in between that removes dir <s>and maybe narHash</s> | 19:21:14 |
goldstein | * so you need a “sanitize” step in between that removes dir and maybe narHash | 19:21:35 |
goldstein | aside: is there a good source of truth for what are the allowed attributes in a flakeref? nix.dev certainly misses some, and I’m not sure if it’s intentional (i.e. some attrs are internal-only) or just a docs bug | 19:26:58 |
helle (just a stray cat girl) | so erm | 19:41:17 |