!9IQChSjwSHXPPWTa:lix.systems

Lix

708 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-rooms216 Servers

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


SenderMessageTime
9 Nov 2024
@aidalgol:matrix.orgaidalgolThis was before I switched to Lix, though. Let me see if I can make it happen again.23:24:02
@kfears:matrix.orgKFears (annoying)

Oh, reading 2.18 manual, there's this:

When git+file is used without specifying ref or rev, files are fetched directly from the local path as long as they have been added to the Git repository. If there are uncommitted changes, the reference is treated as dirty and a warning is printed.

23:24:21
@aidalgol:matrix.orgaidalgolWhat's the URL for whatever you're reading?23:24:57
@kfears:matrix.orgKFears (annoying) Gahh, I hate it. I also disable warn-dirty because it's so ridiculously noisy for normal workflows... 23:26:33
@aidalgol:matrix.orgaidalgol

OK, here we go. I'm going to abbreviate the repos to vsf and sf. What I did was.

  1. Made a code change in my local checkout of sf (did not stage or commit anything)
  2. In my local vsf checkout, I changed the input for sf to git+file:///path/to/sf
  3. Ran nix flake update sf

This is the git diff of flake.lock in my local vsf checkout.:

diff --git a/flake.lock b/flake.lock
index dae015e..638ec92 100644
--- a/flake.lock
+++ b/flake.lock
@@ -29,17 +29,16 @@
]
},
"locked": {
+        "dirtyRev": "12f66eafb7862d91b3e30c14035f96a21941bd9c-dirty",
+        "dirtyShortRev": "12f66ea-dirty",
"lastModified": 1714795926,
-        "narHash": "sha256-PkgC9jqoN6cJ8XYzTA2PlrWs7aPJkM3BGiTxNqax0cA=",
-        "owner": "nix-community",
-        "repo": "steam-fetcher",
-        "rev": "12f66eafb7862d91b3e30c14035f96a21941bd9c",
-        "type": "github"
+        "narHash": "sha256-nyLyYPhzZ76Gltyeyl3/b4sLPc+W7L7m2BTTT3icyOw=",
+        "type": "git",
+        "url": "file:///home/aidan/src/nix-steam-fetcher"
},
"original": {
-        "owner": "nix-community",
-        "repo": "steam-fetcher",
-        "type": "github"
+        "type": "git",
+        "url": "file:///home/aidan/src/nix-steam-fetcher"
}
}
},
23:30:53
@kfears:matrix.orgKFears (annoying) It will probably be unfixable too, until we can fork off flakes :/
Given that dirty warnings pop up even when the only local flake you have is the one you're directly working with, it seems like self is treated as git+file, and removing the dirty behavior will break iterative improvements on self extremely hard, and replacing git+file with path will probably break too much stuff people are used to
23:32:07
@aidalgol:matrix.orgaidalgol Er, correction. I did not actually do step 3. What causes the flake.lock to be updated is direnv. 23:32:13
@aidalgol:matrix.orgaidalgol I have use flake in .envrc in this repo. 23:32:24
@aidalgol:matrix.orgaidalgolIs direnv supposed to mess with the lock file?23:32:41
@kfears:matrix.orgKFears (annoying)
In reply to @aidalgol:matrix.org

OK, here we go. I'm going to abbreviate the repos to vsf and sf. What I did was.

  1. Made a code change in my local checkout of sf (did not stage or commit anything)
  2. In my local vsf checkout, I changed the input for sf to git+file:///path/to/sf
  3. Ran nix flake update sf

This is the git diff of flake.lock in my local vsf checkout.:

diff --git a/flake.lock b/flake.lock
index dae015e..638ec92 100644
--- a/flake.lock
+++ b/flake.lock
@@ -29,17 +29,16 @@
]
},
"locked": {
+        "dirtyRev": "12f66eafb7862d91b3e30c14035f96a21941bd9c-dirty",
+        "dirtyShortRev": "12f66ea-dirty",
"lastModified": 1714795926,
-        "narHash": "sha256-PkgC9jqoN6cJ8XYzTA2PlrWs7aPJkM3BGiTxNqax0cA=",
-        "owner": "nix-community",
-        "repo": "steam-fetcher",
-        "rev": "12f66eafb7862d91b3e30c14035f96a21941bd9c",
-        "type": "github"
+        "narHash": "sha256-nyLyYPhzZ76Gltyeyl3/b4sLPc+W7L7m2BTTT3icyOw=",
+        "type": "git",
+        "url": "file:///home/aidan/src/nix-steam-fetcher"
},
"original": {
-        "owner": "nix-community",
-        "repo": "steam-fetcher",
-        "type": "github"
+        "type": "git",
+        "url": "file:///home/aidan/src/nix-steam-fetcher"
}
}
},
Oh. So it gets worse
23:32:48
@kfears:matrix.orgKFears (annoying)💀💀💀💀💀💀💀23:32:55
* @aidalgol:matrix.orgaidalgol dies23:33:03
@kfears:matrix.orgKFears (annoying)Thanks for the report, I'll try to document it somewhere23:33:30
@aidalgol:matrix.orgaidalgolIs this worth raising as a bug on the Lix issue tracker just so it's on record?23:33:34
@aidalgol:matrix.orgaidalgolOr I'll leave it to you. :P23:33:38
@kfears:matrix.orgKFears (annoying)I'm not sure that it even makes sense to open a bug D: Seems like a design issue in flakes that we'll have to live with, because actually fixing it will break the universe23:34:18
@kfears:matrix.orgKFears (annoying)
In reply to @aidalgol:matrix.org
Is direnv supposed to mess with the lock file?
I think it is, at least it has been updating my lock files for me for years
23:34:53
@aidalgol:matrix.orgaidalgolYeah, best not to do that until such time as it is worth it for Lix to diverge from CppNix.23:35:16
10 Nov 2024
@kurotoshiro:envs.netkurotoshiro joined the room.13:00:38
@lunar-starlight:matrix.orglunar-starlight joined the room.14:16:55
@lunar-starlight:matrix.orglunar-starlightI have a question, the wiki page is somehow working out what country I'm from, and it's "helpfully" translating all of the non-user generated content. Both Firefox and Linux locale are set to English, so it's not getting it from there. The main page (lix.systems) gets the language "right" (as in, English). Any way to turn this off? Preferably server-side, since it's both weird for a page to tell me it knows where I live and impose a language preference on me, and also it's too low quality to be of use. (I would be happy to provide better translations if you want them though)15:50:46
@aidalgol:matrix.orgaidalgolAre you logged in to the wiki, and if so, is your preferred language in your user settings there set to English?18:21:13
@lunar-starlight:matrix.orglunar-starlightI am not logged in18:21:42
@lunar-starlight:matrix.orglunar-starlightIf I log in it's in English (and the preferred language setting is English)18:22:52
@underscore_pear:matrix.orgunderscore_pearheya. has anybody experienced their refresh rate breaking on nixos with lix? i'm using a framework 16 and i did a routine change to my config and after rebuilding my screen only refreshes when i move the mouse :( any ideas?19:52:33

Show newer messages


Back to Room ListRoom Version: 10