RejectedSoftware Forums

Sign up

Advice using mysql-native without vibe.d when building with dub?

I've opened this issue over at the mysql-native repo and mentioned it here as it uses vibe.d as a dependency.

https://github.com/rejectedsoftware/mysql-native/issues/44

Does anyone here have any information on how i can use the mysql-native repo with dub without it pulling in vibe.d and using it's main?

Re: Advice using mysql-native without vibe.d when building with dub?

On Thu, 26 Jun 2014 17:48:44 GMT, Gary Willoughby wrote:

I've opened this issue over at the mysql-native repo and mentioned it here as it uses vibe.d as a dependency.

https://github.com/rejectedsoftware/mysql-native/issues/44

Does anyone here have any information on how i can use the mysql-native repo with dub without it pulling in vibe.d and using it's main?

I've opened an issue for optional dependencies not working correctly: #359

You could make everything compile by adding a "versions": "VibeCustomMain" - this is currently in a deprecation phase and won't be required anymore in the future (probably another 4 months from now, so that projects get the chance to update their code).

It would still use vibe.d then until the issue is fixed, but should do so in a mostly transparent way.

Re: Advice using mysql-native without vibe.d when building with dub?

On Thu, 26 Jun 2014 17:48:44 GMT, Gary Willoughby wrote:

I've opened this issue over at the mysql-native repo and mentioned it here as it uses vibe.d as a dependency.

https://github.com/rejectedsoftware/mysql-native/issues/44

Does anyone here have any information on how i can use the mysql-native repo with dub without it pulling in vibe.d and using it's main?

What I did was to edit the file

~/.dub/packages/mysql-native-0.0.15/dub.json

and remove the "vibe-d" entry from dependencies.

Doing this, mysql-native works without vibe-d.

It seems the '"optional": true' option in dub is not working.

Re: Advice using mysql-native without vibe.d when building with dub?

Am 02.07.2014 05:55, schrieb Poyeyo:

On Thu, 26 Jun 2014 17:48:44 GMT, Gary Willoughby wrote:

I've opened this issue over at the mysql-native repo and mentioned it here as it uses vibe.d as a dependency.

https://github.com/rejectedsoftware/mysql-native/issues/44

Does anyone here have any information on how i can use the mysql-native repo with dub without it pulling in vibe.d and using it's main?

What I did was to edit the file

~/.dub/packages/mysql-native-0.0.15/dub.json

and remove the "vibe-d" entry from dependencies.

Doing this, mysql-native works without vibe-d.

It seems the '"optional": true' option in dub is not working.

The issue (see the link in my previous post) has recently been fixed and
is now included in the latest DUB 0.9.22 beta 4.