Skip to content

Pure repl can't load locked flake #9746

Open
@roberth

Description

Describe the bug

Pure repl can't load locked flake.

Steps To Reproduce

Steps to reproduce:

  1. Lock a local flake.
  2. Load it into a pure repl
$ nix repl --option pure-eval true --pure-eval
Welcome to Nix 2.18.1. Type :? for help.

nix-repl> :lf .
error: cannot use ':load-flake' on locked flake reference '.' (use --impure to override)

nix-repl> :please?

Expected behavior

Pure repl can load a locked flake from a relative path

Pure repl can not load an unlocked flake from anywhere. This part already works. (It doesn't seem to be an errant boolean negation)

nix-env --version output

Additional context

Priorities

Add 👍 to issues you find important.

Metadata

Assignees

No one assigned

    Labels

    bugflakesidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.replThe 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