Contemplate making --arg and --argstr work on nix eval #263

Open
opened 2024-05-04 23:31:10 +00:00 by jade · 1 comment
Owner

Implementation: https://github.com/NixOS/nix/pull/8992

Currently nix eval --argstr meow blah --expr "{meow, blah}: 2" gives you a lambda. This is obviously not what you want, so we should do better.

Either we should:

  • reject --argstr for --expr and commit to bad behaviour
  • allow --argstr for --expr, which specifically is unambiguous
Implementation: https://github.com/NixOS/nix/pull/8992 Currently `nix eval --argstr meow blah --expr "{meow, blah}: 2"` gives you a lambda. This is obviously not what you want, so we should do better. Either we should: - reject `--argstr` for `--expr` and commit to bad behaviour - allow `--argstr` for `--expr`, which *specifically* is unambiguous
jade added the
ux
label 2024-05-04 23:31:18 +00:00
jade added the
E/help wanted
label 2024-05-16 02:34:56 +00:00
Author
Owner

We agree that we don't want to autocall except if --arg/--argstr is specified, so that would have to be a modification to the PR changes.

We agree that we don't want to autocall except if `--arg`/`--argstr` is specified, so that would have to be a modification to the PR changes.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#263
No description provided.