Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Fix: Missing Cargo.lock for crane/nix build (litmus-el0x)

StatusDone · archived
TypeBug
Prioritynormal

Crane requires Cargo.lock to be present and git-tracked. Generate it, git-add it, and add pname to commonArgs in flake.nix.

Summary of Changes

  • Generated Cargo.lock via nix run nixpkgs#cargo -- generate-lockfile (cargo not available in PATH)
  • Staged Cargo.lock with git add so crane can see it
  • Added pname = "litmus"; to commonArgs in flake.nix to silence crane name warning
  • Verified nix develop --command echo OK succeeds