Deprecate nix eval
's strange and poorly documented --write-to
argument #227
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#227
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?
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.
`nix eval` has very strange and poorly documented `--write-to` argumentto Deprecate `nix 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 release