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

configSha256 mismatch after update nix daemon #797

Open
ava57r opened this issue Feb 19, 2025 · 2 comments
Open

configSha256 mismatch after update nix daemon #797

ava57r opened this issue Feb 19, 2025 · 2 comments
Labels
needs reproduction Missing a flake which easily reproduces the problem

Comments

@ava57r
Copy link

ava57r commented Feb 19, 2025

Hello.

I use crane with my private registry
I started with nix v2.16.x
I set configsha256

Now I update nix to v2.26.x
I try to build my flake.nix
building stops with error

error: hash mismatch in file downloaded from 'http://domain/config.json':
         specified: sha256:1
         got:       sha256:2

Why did It find difference?
Does it not sha256 hash function?

Thank you.

@ipetkov
Copy link
Owner

ipetkov commented Feb 22, 2025

Hi @ava57r thanks for the report! Unfortunately I really can't offer much help with such little (sanitized) context. Is this mismatch from one of your own sources? Is this a mismatch with a git checkout?

Happy to take a closer look if you can provide a(n ideally minimal) public flake I can reproduce

@ipetkov ipetkov added the needs reproduction Missing a flake which easily reproduces the problem label Feb 22, 2025
@ava57r
Copy link
Author

ava57r commented Feb 25, 2025

I can not reproduce while.
I tried create a new crate and build it in docker: ubuntu 24.04 + nix-setup-systemd v2.18.1

It works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction Missing a flake which easily reproduces the problem
Projects
None yet
Development

No branches or pull requests

2 participants