Skip to content

builtins.getFlake doesn’t use git+file protocol if available #5670

@schuelermine

Description

@schuelermine

Steps To Reproduce

  1. Run nix repl
  2. Import a flake from a local git repository using the format $path?re{v,f}=$id
  3. Try again using a different $id
  4. Compare the reported hashes

Expected behavior

They’re different—that is, getFlake got different revisions

nix --version output

nix (Nix) 2.5pre20211007_844dd90

Additional context

It’s still possible by writing git+file:$path?re{v,f}=$id.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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