Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zilti opened this issue Sep 21, 2024 · 3 comments
Open

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

zilti opened this issue Sep 21, 2024 · 3 comments
Labels
bug fetching Networking with the outside (non-Nix) world, input locking

Comments

@zilti
Copy link

zilti commented Sep 21, 2024

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
@zilti zilti added the bug label Sep 21, 2024
@zilti
Copy link
Author

zilti commented Sep 21, 2024

Same goes for when one's trying to use a flake as a template using nix flake new -t: This will result in fatal: mismatched algorithms: client sha1; server sha256.

@roberth roberth added the fetching Networking with the outside (non-Nix) world, input locking label Sep 23, 2024
@Mic92
Copy link
Member

Mic92 commented Sep 23, 2024

Where can we case the chicken6-flake?

@zilti
Copy link
Author

zilti commented Sep 23, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fetching Networking with the outside (non-Nix) world, input locking
Projects
None yet
Development

No branches or pull requests

3 participants