-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update build/quick start instructions #170
Conversation
The quick start instructions were actually more like "slow start" instructions, suggesting to do a full build. Even worse, `nix build` fails in modern versions of the Nix CLI, which expects to find a flake file with this invocation. This suggests to use the commonly used `./build` script instead and updates it to provide a minimal bit of guidance when invoking it empty (instead of doing, again, the full build). A full build can still be done by invoking `./build all`.
This is great, though
|
Odd, I do not get this. Maybe related to running the build on a non-NixOS system somehow? I pushed a commit to let the CI runner do a |
Maybe you could check which of these args may be true for the build to work on your system? (By "work" I mean "not fail immediately during evaluation" for now.) Lines 20 to 23 in 95cd09b
|
The culprit seems to be
|
b05b960
to
3aae838
Compare
My guess would be that the culprit is
I removed the CI test commits from this PR; the issue is unrelated. |
I think we could even consider removing this particular option: d871b01 I have not really used it much for testing, myself. I maybe wouldn't remove it just now, we can wait for a bit more insight from a non-NixOS dev environment. Can you do |
Yes, |
@knuton returning to the issue of the failing There is something weird going on here and seems to be dependent on the evaluation order. Maybe you can spot the issue here, because I spent way too long trying to debug it and failed to find the root cause. Here's what I have figured out so far:
Nope! This has nothing to do with In particular, the error cited above that I get when running Now, the weird thing is that if I force My guess is that something "bad" happens due to Anything else I could try to debug this further? Any way I could force |
I did a naughty thing and patched the source file in |
I think this might be a red herring. The bizarre recursion is just part of NixOS's module system, unless I am missing a particular aspect you are pointing to. The invocation is evaluating the modules and returning an attribute set with the resolved |
I want to try to reproduce, you said you're running Debian? |
You are probably right, I was just following the trace and noticed that
Yes, Debian stable ("bookworm"), nix version 2.23 IIRC (I don't have access to the machine now, will let you know specifically later). It does not seem to be something distro-specific though, because as you observed earlier the same failures happen in the CI pipeline. |
Thanks. Multi-user or single-user (daemon or no daemon)? |
There ya go, full info:
|
@knuton so you were right, the I guess it's not worth digging deeper, let's merge this PR and forget about it :) |
The quick start instructions were actually more like "slow start" instructions, suggesting to do a full build. Even worse,
nix build
fails in modern versions of the Nix CLI, which expects to find a flake file with this invocation.This suggests to use the commonly used
./build
script instead and updates it to provide a minimal bit of guidance when invoking it empty (instead of doing, again, the full build).A full build can still be done by invoking
./build all
.For @yfyf.
Checklist