Skip to content

Conversation

@jrobsonchase
Copy link

@jrobsonchase jrobsonchase commented Nov 7, 2025

When runTests = true, the mainProgram of the crate being built/tested gets lost, preventing you from running the crate with nix run:

$ nix run .#scratch
error: unable to execute '/nix/store/707g4alfpbpxxpdr5zaxay4j0mvdsfxr-rust_scratch-0.1.0-linked/bin/rust_scratch': No such file or directory

Bringing in the original meta in the -linked package resolves the problem:

$ nix run .#scratch
Hello, world!

Builds on #413 to fix CI issues.

@jrobsonchase jrobsonchase force-pushed the runtests-meta branch 4 times, most recently from 03f0fc6 to edbbb96 Compare December 23, 2025 16:43
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.

1 participant