Skip to content

repl :log does not support derivation paths #10105

Open
@roberth

Description

Describe the bug

nix-repl> :log /nix/store/fiip84zv229vagk4i290f74jj383m2pf-vm-test-run-nixops-legacy-network.drv
error: expression does not evaluate to a derivation, so I can't build it

This is nonsensical in two ways, both of which should be fixed:

  • It already is a derivation; no need to really evaluate.
  • "I can't build it" doesn't make sense for :log. It seems that some method's error message wrongly assumes we're trying to build a derivation.

Steps To Reproduce

As above.

Expected behavior

It shows the log.

nix-env --version output

Additional context

Workaround: the "forbidden" import. Please don't use import like that.

nix-repl> :log import /nix/store/fiip84zv229vagk4i290f74jj383m2pf-vm-test-run-nixops-legacy-network.drv

Priorities

Add 👍 to issues you find important.

Metadata

Assignees

No one assigned

    Labels

    bugreplThe Read Eval Print Loop, "nix repl" command and debugger

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions