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

System dependent narHash in flake.lock #6731

Closed
lovesegfault opened this issue Jun 27, 2022 · 2 comments
Closed

System dependent narHash in flake.lock #6731

lovesegfault opened this issue Jun 27, 2022 · 2 comments
Labels

Comments

@lovesegfault
Copy link
Member

Describe the bug

I've been noticing an odd behavior where if I update my flake.lock on my aarch64-darwin host, I get a different narHash than if I do it on an x86_64-linux one.

Steps To Reproduce

  1. git clone https://github.com/lovesegfault/nix-config
  2. cd nix-config
  3. git checkout 5dad1c5138074c57fe32ba8979267be6c969858a
  4. nix flake lock --recreate-lock-file
  5. Depending on host:
  • aarch64-darwin

    warning: updating lock file '/Users/bemeurer/src/nix-config/flake.lock':
    • Updated input 'nixpkgs':
        'github:NixOS/nixpkgs/c3d95a02e904e1ef9bb78c59d36eadc15e3428b7' (2022-06-26)
      → 'github:NixOS/nixpkgs/c3d95a02e904e1ef9bb78c59d36eadc15e3428b7' (2022-06-26)
    
  • x86_64-linux
    [no change]

  • aarch64-linux
    [no change]

Expected behavior

The narHash shouldn't change since it's already correct.

nix-env --version output

nix-env (Nix) 2.9.1
@lovesegfault lovesegfault changed the title System-dependant narHash in flake.lock System dependent narHash in flake.lock Jun 27, 2022
@tomberek
Copy link
Contributor

My first guess would be something like case-sensitive filesystem or git operations on OSX vs linux.

@lovesegfault
Copy link
Member Author

Ah, yes:

NixOS/nixpkgs#179272

#1885

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants