[Nix#15520] nix store delete nixpkgs#hello first downloads hello before deleting it #1163
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
awaiting
author
awaiting
contributors
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
Feature/S3
Importance
High
Importance
Low
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
Release Blocking
Non-urgent
Release Blocking
Urgent
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
Urgency
High
Urgency
Low
ux
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/lix#1163
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
Passing a flake attribute to
nix store deletewill first cause it to be downloaded (if it is not already downloaded) before being deleted. This is a bit unintuitive. This happens in both cppnix and Lix.Steps To Reproduce
Expected behavior
I think it should instead error saying that it does not exist.
nix --versionoutputAdditional context
https://github.com/NixOS/nix/issues/15520
This has been fixed in
6a4efb82bc, lix 2.93 is quite an old release (2.95 is currently being released)2.93.3 is the default version in NixOS's most recent stable release, 25.11, but
lixPackageSets.latest.lixis 2.94.0, which should have the fix.Yeah, if we had done a 2.93.4, this would have been fixed. Given that 2.93.3 is going away soonish with 2.95.1 arriving, except if we get an explicit request for a 2.93 series backport, I'd consider this fixed.
@qyriad could you add triaging tags for "oldstable" bugs or something of that nature? I think these bugs makes sense and would help understand/inform if we should update our stable release maintenance policy
This still reproduces in 2.94.0.
What am I missing?
This doesn't reproduce on my side.I mean right, this is trying to build the path.@lheckemann Do you have any background on the expected behavior here when you made this fix?
That is really weird.
Right, if I delete the derivation first then when I try I get your error message. But if the derivation exists in the store it will still download it.
https://gerrit.lix.systems/c/lix/+/2782/comments/f05249db_689c5989 my ass. I'm sure I at least tested it manually, but I'm unable to get it to behave the way I described it even on that very commit. Sorry about that! I guess RealiseMode is broken. I'll have a look if I can fix it properly.