[Nix#8837] Schrödinger's Attribute #124
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#124
Loading…
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?
Upstream-Issue: NixOS/nix#8837
Describe the bug
Attributes can apparently be both defined and missing at the same time (spukhafte fernwirkung).
Steps To Reproduce
Defined
vs.
So, somehow
foo.z
is both defined by the first assignment and missing after the first assignment.You can reproduce this in a simpler way with
Expected behavior
Hopefully we could find a way to make this succeed (since there's no conflict).
However, if it must fail then I think that saying that
foo.z
is defined when it's not is confusing. I could understand something like "foo
is already defined" (and immutability prevents any changes). But, I think that even this change is a little confusing considering allowed operations likeNote: This may be related to https://github.com/NixOS/nix/issues/7111 .
I'm unsure this is actually a bug/feature we can easily resolve. At best we should improve the error message provided by this edge case; namely "cannot redefine foo" rather than "cannot redefine foo.z"?