Skip to content

crane ignore sourceRoot for given sources #994

@TheNeikos

Description

@TheNeikos

Describe the bug
When setting sourceRoot it does not take it into account when trying to find what the 'actual' package is when building the dummySrc and determining the Cargo.toml and Cargo.lock.

Reproduction

I set up a quick repository to showcase it: https://git.hemera.systems/Hemera/crane-reproducer-workspace-sourceRoot

In my opinion, this should work, as I am telling crane what subset of the source the 'building' should happen in.

When manually setting the cargoToml and cargoLock options it works. So I think it is the auto-finding that has an issue maybe?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions