Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't update duplicated git dependency #9160

Closed
Diggsey opened this issue Feb 10, 2021 · 2 comments
Closed

Can't update duplicated git dependency #9160

Diggsey opened this issue Feb 10, 2021 · 2 comments
Labels
C-bug Category: bug

Comments

@Diggsey
Copy link
Contributor

Diggsey commented Feb 10, 2021

Problem
I have a project which has a direct git dependency with branch "X", and an indirect git dependency on the same repo, but branch "Y".

I would like to update the direct dependency. (Although I don't care if both are updated, that's also fine)

Steps

I ran cargo update -p openapi-gen and got the following error:

error: There are multiple `openapi-gen` packages in your project, and the specification `openapi-gen` is ambiguous.
Please re-run this command with `-p <spec>` where `<spec>` is one of the following:
  ssh://git@github.com/<org>/openapi-gen.git#openapi-gen:0.1.0
  ssh://git@github.com/<org>/openapi-gen.git#openapi-gen:0.1.0

Now... clearly these two "specs" are identical so this is not going to help. As expected, running the proposed command does not work:

error: There are multiple `openapi-gen` packages in your project, and the specification `ssh://git@github.com/<org>/openapi-gen.git#openapi-gen:0.1.0` is ambiguous.
Please re-run this command with `-p <spec>` where `<spec>` is one of the following:
  ssh://git@github.com/<org>/openapi-gen.git#openapi-gen:0.1.0
  ssh://git@github.com/<org>/openapi-gen.git#openapi-gen:0.1.0

... and it suggests running the exact command I just ran 😆

@Diggsey Diggsey added the C-bug Category: bug label Feb 10, 2021
@ehuss
Copy link
Contributor

ehuss commented Feb 10, 2021

Thanks for the report, I think this may be a duplicate of #8481?

@Diggsey
Copy link
Contributor Author

Diggsey commented Feb 10, 2021

Ah yes, closing.

@Diggsey Diggsey closed this as completed Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants