You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem I am running into using dub is with subpackages and versions. I use the top project to build my main executable and use subpackages to define my child libraries. So my dependencies list looks like:
This is really nice but i'm running into a problem with using git branches for development. I tend to create branches for each feature or bugfix i implement. But when i try and compile in one of these branches dub errors out on conflicting package multi-references:
The same package is referenced in different paths:
hslc ~upstream: /home/jmtierne/Projects/Hatchet
hslc ~master: /home/jmtierne/Projects/Hatchet
Error: Conflicting package multi-references.
Now i'm assuming the problem here is that i am in upstream branch when everything expects ~master. I can fix it by replacing all ~master with ~upstream however doing this for each branch I create is frustrating. Is there a way to give a any version (*) to a dependency or manually define a version for the subPackages for dub to query on?
The text was updated successfully, but these errors were encountered:
It's currently not possible to work around this, but once a good solution is found it will be implemented.
BTW, the same issue needs to be solved for branch and version based dependencies (e.g. "~master" and ">=1.0.0"). Those are also recognized as conflicting, even though arguably using any of the two would be fine.
Possible solution: for dependencies that are referencing a package in a pure parent path (e.g. "../../"), allow to drop the explicit version and use whatever is there. When still given, issue a warning. The other way around, if no version is given for a path reference to an external package, also output a warning.
The problem I am running into using dub is with subpackages and versions. I use the top project to build my main executable and use subpackages to define my child libraries. So my dependencies list looks like:
This is really nice but i'm running into a problem with using git branches for development. I tend to create branches for each feature or bugfix i implement. But when i try and compile in one of these branches dub errors out on conflicting package multi-references:
Now i'm assuming the problem here is that i am in upstream branch when everything expects ~master. I can fix it by replacing all ~master with ~upstream however doing this for each branch I create is frustrating. Is there a way to give a any version (*) to a dependency or manually define a version for the subPackages for dub to query on?
The text was updated successfully, but these errors were encountered: