On 4/6/2014 3:05 PM, salvari wrote:

Following Nick advice I've completed my project by using dmd and
specifying dependencies manually, it's a tiny project after all.
Everything seems to work fine. So...

After seen your tutorials (at youtube, by the way very useful indeed)
I'm now trying to port my code to use dub, again I have a doubt.

In my code, at 'dub.json' file I've wrote:
     "dependencies": {
             "mysql-native" : ">=0.0.12"
     }

When trying to build, I've got an error from mysql-native code:
$HOME/.dub/packages/mysql-native-0.0.12/source/mysql/connection.d(333):
Error: cannot implicitly convert expression (t % 24) of type int to ubyte


But this error seems to be already solved in github repo for mysql-native.

I manually copy the files from my cloned copy of mysql-native into
$HOME/.dub/packages/mysql-native-0.0.12/source/mysql/

and now everything works fine.

Am I making an error when specifying my dependencies??


IMO, DUB really needs a way to specify a specific Git commit hash:
https://github.com/rejectedsoftware/dub/issues/51

I've tagged the current mysql-native HEAD as v0.0.13, so as soon as the dub repository sees the update (check http://code.dlang.org/packages/mysql-native ), you should be able to just do: "mysql-native" : ">=0.0.13"

Reply via email to