!9IQChSjwSHXPPWTa:lix.systems

Lix

1104 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-rooms294 Servers

Load older messages


SenderMessageTime
24 Nov 2025
@goldstein:tty5.devgoldstein e.g. rev and revCount are supported for all the fetchers, including file and tarball and path 19:47:03
@goldstein:tty5.devgoldsteinfor reasons I do not comprehend19:47:07
@helle:tacobelllabs.nethelle (just a stray cat girl)oh, the reason is very easy19:47:18
@helle:tacobelllabs.nethelle (just a stray cat girl)every fetcher got rewritten to be basically fetchTree in disguise19:47:28
@helle:tacobelllabs.nethelle (just a stray cat girl)I should file a further bug on this.....19:47:46
@helle:tacobelllabs.nethelle (just a stray cat girl)because it leads to some question on if we want to keep that behaviour and how many people are relying on it19:48:04
@helle:tacobelllabs.nethelle (just a stray cat girl)Redacted or Malformed Event19:48:34
@helle:tacobelllabs.nethelle (just a stray cat girl)because while unifying a bunch of the code is useful, having behaviour of flakes leak outside of flakes is suboptimal19:49:19
@goldstein:tty5.devgoldstein fetchTree is a cool primitive to have, but flakerefs are kind of a weird format... 19:49:52
@helle:tacobelllabs.nethelle (just a stray cat girl)yes, this is the underlying problem and as everything flakey, underdocumented19:50:14
@helle:tacobelllabs.nethelle (just a stray cat girl)there is a reason flakes are being ripped out of core19:50:28
@goldstein:tty5.devgoldsteinthe URL form trips me up so much bc of the meta-query-parameters in what is otherwise HTTP urls19:51:18
@goldstein:tty5.devgoldsteinvery excited for this19:51:25
@helle:tacobelllabs.nethelle (just a stray cat girl)they aren't necessary http urls, but yeah19:51:35
@goldstein:tty5.devgoldsteinyeah, I mean in urls that include http urls19:51:49
@goldstein:tty5.devgoldstein* yeah, I mean in urls that could be http urls19:51:57
@helle:tacobelllabs.nethelle (just a stray cat girl)yeah19:52:41
@thubrecht:matrix.orgthubrechtThe source code :>19:53:42
@goldstein:tty5.devgoldsteinyeah, that’s what I’ve done lol19:53:52
@goldstein:tty5.devgoldsteinclipboard.png
Download clipboard.png
19:54:05
@helle:tacobelllabs.nethelle (just a stray cat girl)there is divergence between lix and nix there.....19:55:22
@helle:tacobelllabs.nethelle (just a stray cat girl)I think we currently lack practical bugs, but we have had them before19:55:37
@goldstein:tty5.devgoldstein yeah
I won’t bother checking cppnix impl for now because lix is what I use, but I’ll probably need to later
19:56:13
@goldstein:tty5.devgoldstein or maybe not
I’ve never actually seen more esoteric flakeref attrs in the wild
19:56:26
@helle:tacobelllabs.nethelle (just a stray cat girl)yeah, I mean lix docs just need to have the lix supported ones and defer to "there may be incompatibilities with other nix implementations currently due to a lack of a formal specification"19:59:37
@helle:tacobelllabs.nethelle (just a stray cat girl)the untangling of the fetchers (cleaning fetchurl, etc) is going to be a whole extra set of questions20:00:18
@helle:tacobelllabs.nethelle (just a stray cat girl) sigh 20:00:46
@helle:tacobelllabs.nethelle (just a stray cat girl)

for chaos reasons, fetchurl, fetchTarball and fetchGit are implemented as:
https://git.lix.systems/lix-project/lix/src/branch/main/lix/libexpr/primops/fetchTree.cc#L329

not 100% sure how path and file are off the top of my head, but probably similarly silly

20:05:39
@helle:tacobelllabs.nethelle (just a stray cat girl)so the fact that some abstraction is leaky....20:06:23
@goldstein:tty5.devgoldstein the part that’s confusing to me is that they explicitly list allowed attrs, including rev and revCount
https://git.lix.systems/lix-project/lix/src/commit/b966d2e53bd6f5f03ae86b60b12d7489cf91f1a6/lix/libfetchers/tarball.cc#L234
20:07:19

Show newer messages


Back to Room ListRoom Version: 10