dustmite on dub project

Andre Pany andre at s-e-a-p.de
Tue Jan 26 20:47:35 UTC 2021


On Tuesday, 26 January 2021 at 20:36:58 UTC, Steven Schveighoffer 
wrote:
> On 1/26/21 3:17 PM, Andre Pany wrote:
>> On Tuesday, 26 January 2021 at 20:09:27 UTC, Steven 
>> Schveighoffer wrote:
>>> Hold on, where do you see this? mysql-native has dub.sdl, and 
>>> it doesn't have these in there.
>>>
>> 
>> I executed `dub init sample` and added in the interactive 
>> console the dependency `mysql-native`. It added `mysql-native 
>> ~> 3.0.0`. In the local dub package folder I opened dub.json 
>> of package mysql-native. I assume dub converts dub.sdl to 
>> dub.json while fetching packages. Here I found the content of 
>> this 
>> https://github.com/mysql-d/mysql-native/blob/master/dub.sdl 
>> just as JSON formatted.
>
> Oh wow. Weird.
>
> No, the dub.sdl does NOT contain the exclusion of the package.d 
> file (see in the file you actually linked).
>
> So dub-registry is doing this? or is it dub? Now I need to load 
> a previous version of dmd and see if this works.
>
> -Steve

I think dub is doing this. I remember there was a recent PR doing 
some
things with excludeSourceFiles: 
https://github.com/dlang/dub/pull/2039/files

Kind regards
André


More information about the Digitalmars-d-learn mailing list