Skip to content

Git dependency with a path into a sub-folder location #1462

Closed

Description

For dependencies we can have git = <url> or path = <path> but we cannot combine the two, in the cases where a cargo package lives somewhere nested inside of a git repo, i.e. not in the root of the repo. It would be very powerful to be able to provide a relative path into a git repo.

Use case: A repo that is a client library containing bindings in more than one language, and the Rust binding is under the rust folder inside that repo.

The workaround today is to submodule the repo into your own repo, and use a relative path config. This levies the requirement of using git of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions