-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
narHash for two inputs is wrong #2
Comments
I am seeing the same hash as is currently in the lockfile when I removed |
@tstat I am indeed on aarch64-darwin. |
I'm going to close this. The underlying issue is a case collision and the fact that Nix doesn't seem to apply |
For anyone else who runs into this, the solution was not just to migrate my store to case-sensitive (which was very nerve-wracking given how much of my system depends on it), but also to make a |
@lilyball thanks for sharing the workaround! To confirm - did you follow something akin to this? https://github.com/cr/MacCaseSensitiveConversion And if so, have you been fairly happy with the outcome of that? I also find the prospect nerve wracking :D I also went down the rabbit hole of trying to perform the build directly on the |
@LoganBarnett No, I did not do anything with backups. IIRC I created a new case-sensitive volume, then copied the entire store onto it, then grepped for any files with the case sensitive hack and asked nix to delete those store paths, and also asked nix to delete the store paths for the broken flake inputs (thankfully my running system did not depend on any case-hacked files). If I had to do it again I'd probably ask nix to copy my current profiles to the other store instead of doing a filesystem copy. I also did the swap between stores in single-user mode. As for the tmpdir, I overrode |
# This is the 1st commit message: rpicam-apps/libcamera: update deps # This is the commit message nix-community#2: libcamera: skip checking # This is the commit message nix-community#3: libcamera: remove werror flag # This is the commit message nix-community#4: disable documentation as well # This is the commit message nix-community#5: Revert "disable documentation as well" This reverts commit ca63cf3. # This is the commit message nix-community#6: Revert "libcamera: remove werror flag" This reverts commit e182301. # This is the commit message nix-community#7: Revert "libcamera: skip checking" This reverts commit 6b03e3f.
I'm seeing two incorrect narHashes in your flake.lock. I had to work around this by manually "updating" each input back to the same revision. In both cases the
lastModified
andrev
stayed the same, but thenarHash
changed. This was with Nix 2.13.3.rpi-firmware-stable-src
- the hash I see issha256-00XrEDj2n3627MJ75waI3M0t40MFevFgGOnpHjjP0dQ=
rpi-linux-5_15-src
- the hash I see issha256-/5UStX6DUxWQ2WFWvB5u1TszLUzCo+b/qiBVetEkBTE=
I have no explanation for why the hashes are wrong, unless github actually changed the archive file it returns for the locked revisions (which would be a rather big surprise).
The text was updated successfully, but these errors were encountered: