!9IQChSjwSHXPPWTa:lix.systems

Lix

1100 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms293 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
24 Nov 2025
@goldstein:tty5.devgoldstein

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:tty5.devgoldsteinI can mention it in the issue ig, although I’m not sure that’s the same issue19:17:41
@goldstein:tty5.devgoldsteincppnix has the same behaviour here19:18:06
@goldstein:tty5.devgoldstein so you need a “sanitize” step in between that removes dir and maybe narHash 19:18:55
@goldstein:tty5.devgoldstein * so you need a “sanitize” step in between that removes dir ~and maybe narHash~ 19:20:59
@goldstein:tty5.devgoldstein * so you need a “sanitize” step in between that removes dir ~and maybe narHash~ 19:21:05
@goldstein:tty5.devgoldstein * so you need a “sanitize” step in between that removes dir <s>and maybe narHash</s> 19:21:14
@goldstein:tty5.devgoldstein * so you need a “sanitize” step in between that removes dir and maybe narHash 19:21:35
@goldstein:tty5.devgoldsteinaside: 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 bug19:26:58
@helle:tacobelllabs.nethelle (just a stray cat girl)so erm19:41:17
@helle:tacobelllabs.nethelle (just a stray cat girl)that is a tad cursed19:41:20
@helle:tacobelllabs.nethelle (just a stray cat girl)the docs for it19:41:22
@helle:tacobelllabs.nethelle (just a stray cat girl) https://docs.lix.systems/manual/lix/2.94/language/builtins.html#builtins-fetchTree 19:41:46
@helle:tacobelllabs.nethelle (just a stray cat girl)uh, yeah, mention how incomplete they are19:41:54
@helle:tacobelllabs.nethelle (just a stray cat girl)* uh, yeah, mentions how incomplete they are19:43:33
@helle:tacobelllabs.nethelle (just a stray cat girl)this technically is it's own bug independent of all the other doc bugs and should probably exist19:43:50
@goldstein:tty5.devgoldsteinthanks for the link anyway!19:43:51
@goldstein:tty5.devgoldsteinI think these docs are similar to nix.dev ones19:44:00
@helle:tacobelllabs.nethelle (just a stray cat girl)that part is still the same, not really been touched19:44:12
@goldstein:tty5.devgoldstein e.g. they miss allRefs attr in git fetcher 19:44:19
@goldstein:tty5.devgoldsteinnot sure if intentional19:44:22

Show newer messages


Back to Room ListRoom Version: 10