Skip to content

Cycle detection in nix repl output doesn't match nix-instantiate #8672

@sternenseemann

Description

@sternenseemann

Describe the bug

[nix-shell:~]$ nix repl 
Welcome to Nix 2.15.1. Type :? for help.
nix-repl> :p let x = { inherit x; }; in x
{ x = { x = «repeated»; }; }
[nix-shell:~]$ nix-instantiate --eval --strict -E 'let x = { inherit x; }; in x'
{ x = «repeated»; }

Expected behavior

nix-instantiate and nix repl print cycles the same way for the same expression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreplThe Read Eval Print Loop, "nix repl" command and debugger
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions