Skip to content

Wrong depending on same version detection #7171

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

Closed
nico-abram opened this issue Jul 23, 2019 · 2 comments
Closed

Wrong depending on same version detection #7171

nico-abram opened this issue Jul 23, 2019 · 2 comments
Labels
C-bug Category: bug

Comments

@nico-abram
Copy link

Depending on the same crate twice using two different, but similar, versions gives me an error about depending on the same version. Changing it to depend on a more different version fixes it.
Example:


[dependencies]
glium =  "0.25"
imgui =  "0.1.0"
imgui-glium-renderer = "0.1.0"
imgui-winit-support = "0.1.0" 
imgui_copy = { version = "0.1.0-rc.1", package = "imgui" }

Output:
error: the crate test-imgui v0.0.2 (C:/_)depends on crateimgui v0.1.0 multiple times with different names
Changing one to version "0.0.X" works.

@nico-abram nico-abram added the C-bug Category: bug label Jul 23, 2019
@nico-abram nico-abram changed the title Wrong depending on same version detection Wrong depending on same version detection Jul 23, 2019
@ehuss
Copy link
Contributor

ehuss commented Jul 23, 2019

I think this is to be expected. The semver requirement ^0.1.0-rc.1 will resolve to 0.1.0, and you can't have two of the same version. You can use =0.1.0-rc.1 to force the use of a pre-release, but that still won't work in your situation because it is still considered semver-compatible to 0.1.0 and it won't let you do that.

@ehuss
Copy link
Contributor

ehuss commented Sep 21, 2019

I'm going to close this as somewhat expected, and a duplicate of #6016. Pre-releases don't quite work very well now (see #2222 which covers some of what is wrong).

@ehuss ehuss closed this as completed Sep 21, 2019
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