Skip to content

restrict-eval does not allow access to git flake inputs #7098

@lheckemann

Description

@lheckemann

Describe the bug
(might be a dup of #7090, not sure)

Steps To Reproduce

nix build --restrict-eval github:lheckemann-dump/fetcher-issues-a/39ad58c862ba4b2a53dbe659a03df4c9a64a464f#test1

Expected behavior

Building just fine. I'm particularly surprised because the test3 and test4 inputs (github: instead of git) are allowed.

Actual behaviour

error: access to URI 'https://github.com/lheckemann-dump/fetcher-issues-b.git' is forbidden in restricted mode
(use '--show-trace' to show detailed location information)

nix-env --version output
nix-env (Nix) 2.12.0pre20220913_2a1c63c (lazy-trees branch)
Also tested on nix-env (Nix) 2.8.1.

flake.nix for reference: https://github.com/lheckemann-dump/fetcher-issues-a/blob/39ad58c862ba4b2a53dbe659a03df4c9a64a464f/flake.nix

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions