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
bash-completion: fix sha256 hash #107736
bash-completion: fix sha256 hash #107736
Conversation
Oh wait... I see my colleague actually tried to address this in https://github.com/NixOS/nixpkgs/pull/107511/files I'm trying to understand the comment in there that says "The checksum you have provided will work on your computer, as the output checksum matches something that was already fetched". I still get this error on newly provisioned machines when trying to build from source. I guess we somehow add a package that has the same name but a different hash somehow? |
Even when I move the path that it complains about beforehand:
I get this:
I wonder if the issue is the "warning: there are multiple derivations named 'bash-completion-2.11'; using the first one" line? |
I'll actually collect a bit more information and take this to the forums / IRC :) |
/nix/store is not designed to modified outside of Nix tooling - doing so will corrupt the store causing weird, hard to debug issues. Use You can use nix-prefetch-url --unpack https://github.com/scop/bash-completion/archive/2.11.zip This provides Also, something I find interesting is that /nix/store is in |
@xfix that command is pretty angry on my (macOS) laptop (which has regular /nix):
on my linux box:
It seems they have a history of 'can't have this weird character sequence on operating system x'. My laptop (and our produciton systems) are APFS, I wonder if that causes issues with this. Any chance hydra is HFS+ still? |
Filed this as issue #107768 |
Motivation for this change
When building from source, this currently fails
Confirming with nix-prefetch-git you can see that the hash is indeed different
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)