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

buildDepsOnly fails when crate has no main.rs / lib.rs #816

Open
OliverNChalk opened this issue Mar 20, 2025 · 0 comments
Open

buildDepsOnly fails when crate has no main.rs / lib.rs #816

OliverNChalk opened this issue Mar 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@OliverNChalk
Copy link

OliverNChalk commented Mar 20, 2025

Describe the bug

I'm setting up a flake.nix to build a workspace which contains many crates, some of which only contain tests/ and no main.rs or lib.rs. It appears makeDummySrc fails to copy tests/*.rs across. I do see some reference to tests in makeDummySrc:

        ${safeStubList "test" "tests"}

Reproduction

If you would expect this use case to work (tests/*.rs) copied to buildDepsOnly's dummySrc directory, then I can amend this issue with a minimal repro in ~10 hours (my morning). Else if this is known to be an unsupported use case, let me know if you recommend:

  • Opening a PR against crane.
  • Working around with extraDummyScript.
  • Something else.
@OliverNChalk OliverNChalk added the bug Something isn't working label Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant