repl-overlays are not exempt from pure eval restrictions in debugger mode #777
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
diagnostics
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/lix#777
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?
nix (Lix, like Nix) 2.93.0-dev-pre20250313-a4514e4This issue was mentioned on Gerrit on the following CLs:
I think this has regressed? I just hit this on main (currently
faaa14a303) :/So the problem with the original fix in
276add2cd7is that the list of allowed paths for files (which is what's used by theevalFilecall used for loading overlays) is initialized when the evaluator is first constructed, so just changing thepure-evalsetting afterwards doesn't actually affect it (except just changing the error message).Right now, the class that holds allowed search paths (
EvalPaths,evaluator.pathsinside the repl) has anallowPathmethod that can dynamically add a new path to search, but it doesn't have adisallowPathorremoveAllowedPathmethod, so we'd need to add that to use it (or we'd risk breaking purity by allowing the overlay's path for the whole rest of the eval). Does that sound fine?(and all this still doesn't fix the fact that repl overlays can't do impure eval stuff (such as using other paths inside of them) without forcing the expression immediately, but i think that's just a fundamental/design flaw more than a bug...)
:stinnix-eval-spawned debugger #1212