-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
nix command broken: massive slowdown, requires flakes-specific experimental flags on non-flakes systems #5637
Comments
Apparently, the “working” command is now:
|
... apparently, this also affects |
@abathur This doesn't address the issues I brought up?
The immediate issues at hand here are:
More generally, I do not think the |
Correct. But the threads explain the situation. |
|
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nix-2-4-and-what-s-next/16257/1 |
I'm aware. I'm still asking why
Nice to hear it “works on your machine”, but it definitely doesn't on mine: as stated above, on my machine, if I can't as easily make a recording of
Still. Why are those called “legacy” at all? Users will then assume |
PS: The performance regression is worse than I thought: it takes 9s for Output from
And another asciinema Testing on other commands, they all seem to have a similar slowdown on startup. |
The slowdown may be due to a DNS lookup at startup, see #5384. |
Even assuming a single DNS lookup is done on startup and a 10s timeout is reached, this alone doesn't explain the 30s slowdowns (or more) observed with Moreover, the configured DNS resolver is local and does not take 10s to reply; I will however install a caching stub resolver and monitor the service latencies for queries issues by |
@edolstra the performance regression is indeed DNS-related, as setting up a stub resolver (Stubby, in this case) “solved” it. |
I marked this as stale due to inactivity. → More info |
Closing as this was DNS related. Also note that the nix-command is experimental. Admitedly, there were a few versions released without that concept in existence, but we are not planning on backporting |
Describe the bug
nix search
now requires experimental featuresflakes
andnix-command
to run, and even then fails to searchnixpkgs
.Steps To Reproduce
Expected behavior
Finding
swappy
fromnixpkgs
.nix-env --version
outputAdditional context
I do not use flakes, nor did I configure anything related to flakes.
The issue occurs both in the system environment, and in my user's environment (ruling out it being an issue with
home-manager
)The text was updated successfully, but these errors were encountered: