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 depend on different versions of same package using configurations #2023

Closed
CyberShadow opened this issue Oct 12, 2020 · 2 comments
Closed

Comments

@CyberShadow
Copy link
Member

I believe this is a "known issue", but I don't see this particular variant of it filed, so here is a formal record of this particular variation of the problem.

The gist is as follows:

name "test"

configuration "a" {
	dependency "openssl" version="~>1.0"
	# ... other configuration settings ...
}
configuration "b" {
	dependency "openssl" version="~>2.0"
	# ... other configuration settings ...
}

(Any package works instead of openssl).

Attempting to build such a project results in:

Unresolvable dependencies to package openssl:
  test ~master depends on openssl ~>1
  test ~master depends on openssl ~>2

Essentially, because of how the Dub dependency resolution process works, it's not possible to support multiple major versions of a library when they also require separate configuration in dub.sdl (such as versions or libs).

@Geod24 Geod24 added the bug label Jul 27, 2022
@Geod24 Geod24 pinned this issue Jul 27, 2022
@Geod24
Copy link
Member

Geod24 commented Jul 27, 2022

This is a duplicate of #1706 (essentially) but since it's likely to be an issue users encounters, let's keep it open (and pinned).

@Geod24
Copy link
Member

Geod24 commented Jul 27, 2022

Actually there is: #1217

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

No branches or pull requests

2 participants