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

fetchTree: Don't crash if narHash is missing #11933

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

edolstra
Copy link
Member

Motivation

Fixes

nix: ../src/libexpr/primops/fetchTree.cc:37: void nix::emitTreeAttrs(EvalState&, const StorePath&, const fetchers::Input&, Value&, bool, bool): Assertion `narHash' failed.

on a lock file with an input that doesn't have a narHash. This can happen when using a lock file created by the lazy-trees branch.

Cherry-picked from lazy-trees.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

Fixes

  nix: ../src/libexpr/primops/fetchTree.cc:37: void nix::emitTreeAttrs(EvalState&, const StorePath&, const fetchers::Input&, Value&, bool, bool): Assertion `narHash' failed.

on a lock file with an input that doesn't have a narHash. This can
happen when using a lock file created by the lazy-trees branch.

Cherry-picked from lazy-trees.
@cole-h cole-h mentioned this pull request Nov 21, 2024
@Mic92
Copy link
Member

Mic92 commented Nov 22, 2024

@mergify queue

Copy link

mergify bot commented Nov 22, 2024

queue

🛑 The pull request has been merged manually

The pull request has been merged manually at 838d3c1

mergify bot added a commit that referenced this pull request Nov 22, 2024
@Mic92 Mic92 merged commit 838d3c1 into NixOS:master Nov 22, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants