Skip to content

bender clone on Path Subdependencies Fails #208

@da-gazzi

Description

@da-gazzi

If a Bender repo A contains a subdependency B, specified in its Bender.yml as a Path dependency that is located in a subdirectory of the repo with its own Bender.yml, bender clone B -p my_local_stuff fails with the following error message:

error: remote source already exists.
error: git renaming remote origin failed

I assume this is because Bender assumes that B is also a git repo, but it isn't.
My proposed solution would be to treat Path subdependencies slightly differently:

  • bender clone A could update Bender.lock (and Bender.local?) not just for the A dependency but also for all Path subdependencies of A, pointing them to the clone'd local version contained in the clone of A.
  • bender clone B could fail and tell the user that B is a Path subdependency in A, and they should bender clone A instead.

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