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

setting a dependency version as ~master should still compile with other dependencies that need the same package #1062

Open
SingingBush opened this issue Feb 1, 2017 · 2 comments

Comments

@SingingBush
Copy link

I want to test that this issue has been resolved, so I set my vibe-d dependency to ~master. The problem now is that it won't compile:

Could not find a valid dependency tree configuration: Dependency mysql-native -> vibe-d:core ~>0.7.29 (optional) mismatches with selected version ~master

surely ~master should be an acceptable version for mysql-native's requirement for ~>0.7.29

@Abscissa
Copy link
Contributor

Abscissa commented Feb 1, 2017

FWIW, you can work around that like this (in fact, AIUI, this is the dub recommended way for dealing with non-tagged versions like HEAD):

$ cd ..
$ git clone https://github.com/rejectedsoftware/vibe.d.git vibe-d-master
$ dub add-local vibe-d-master
$ cd -
$ dub

When done:

$ dub remove-local /path/to/vibe-d-master

When I tested just now, latest vibe 0.8.0 ~master HEAD worked with mysqln 0.1.7's test suite, so hopefully you should be good now.

@timotheecour
Copy link

timotheecour commented Jun 11, 2017

@Abscissa this doesn't seem to work:

cd some_path
git clone git@github.com:libmir/dcv
cd -
dub add-local some_path/dcv
dub build

Search for versions of dcv (1 package suppliers)
Downloading metadata for dcv
Getting from http://code.dlang.org/packages/dcv.json
Getting http://code.dlang.org/packages/dcv.json...

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

No branches or pull requests

3 participants