Skip to content

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

Open
@OliverNChalk

Description

@OliverNChalk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions