Deprecate nix eval
's strange and poorly documented --write-to
argument #227
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
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
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#227
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?
The argument is described in the manpage simply as:
--write-to path Write a string or attrset of strings to path.
However, in reality what it actually does is:
Which as @qyriad has noted, seems incredibly specific.
At the very least this option's documentation needs an update in the manpage to match the help output which is:
And potentially this functionality should be considered for deprecation and removal or at least a usage survey should be conducted
idk, converting a Nix expression to a directory structure is kind of…neat, I suppose; I'm not sure we should remove that entirely, but both the mechanism and the interface for it could use some design work.
honestly the more sensible replacement for this is probably building this thing as a derivation? like, via puck's NAR builder tricks, if operationalized at least.
It's currently used to generate the mdbook versions of the nix3 CLI man pages, so at the least replacing
--write-to
with building inside a derivation wouldn't really work for that use case, though that use case is kind of wild in the first placeoh we suppose this could be good for use cases where you don't have a daemon. fair enough.
to Deprecatenix eval
has very strange and poorly documented--write-to
argumentnix eval
's strange and poorly documented--write-to
argumentDiscussion was had with the team, outcome:
--write-to
, adding a warning, then remove it in a later releasenix eval --write-to
#974This issue was mentioned on Gerrit on the following CLs: