Skip to content

Cargo plugin can't handle git sources #10

Open

Description

@gtristan

This is a clone of the same issue reported against the cargo plugin for bst-1: https://gitlab.com/BuildStream/bst-external/-/issues/48

Some Cargo.lock files can specify dependencies through git repositories, but the cargo plugin is unable to handle this case.

Activity

  1. sophie-h commented on Nov 24, 2023

    @sophie-h

    I looked into this and it seems to be a bit tricky. The problem is that kind: cargo can only have cargo plugin refs and not git refs.

    The cargo plugin has to introduce a ref format for git sources. That's not really complicated. That, however, means that for all functionality like download etc., the cargo plugin also has to implement the git functionality. It might be possible to do this by wrapping around the git plugin in these cases. But I'm not sure if that's the right way to do this.

  2. sophie-h commented on Mar 10, 2024

    @sophie-h

    I'm working on this now.

  3. added 2 commits that reference this issue on Mar 18, 2024
    873603a
    dadf197
  4. sophie-h commented on Jul 26, 2024

    @sophie-h

    This feature is now available in buildstream-plugins-community as part of the cargo2 plugin.

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

Metadata

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