Skip to content

Flakes break when being part of an sha256 git repository #11561

Open
@zilti

Description

I have a sha256-based git repository with a flake.nix in it. I cannot properly use my flake:

$ use flake . --impure --show-trace

warning: Git tree '/home/zilti/projects/chicken6-flake' is dirty
warning: creating lock file '/home/zilti/projects/chicken6-flake/flake.lock'
error:
       … while updating the lock file of flake 'git+file:///home/zilti/projects/chicken6-flake'

       … while fetching the input 'git+file:///home/zilti/projects/chicken6-flake'

       error: hash '198461b4bc842fde74f065402dcf42e3956eb36e8a990d2782e7b4bd861bc67a' has wrong length for hash type 'sha1'
direnv: nix-direnv: Evaluating current devShell failed. Falling back to previous environment!
direnv: export +NIX_DIRENV_DID_FALLBACK ~PATH

Metadata

Assignees

No one assigned

    Labels

    bugfetchingNetworking with the outside (non-Nix) world, input locking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions