linkrope / dunit

xUnit Testing Framework for D
Boost Software License 1.0
37 stars 9 forks source link

Dependency to unit-threaded causes issue #12

Closed andre2007 closed 6 years ago

andre2007 commented 6 years ago

d-unit has a dependency to unit-threaded this causes issues. I created a XMake build infrastructure. There is a golden rule, that during the build, the internet must not be accessed. Therefore I fetched d-unit upfront and placed it within my dub package folder. Within dub.json I specified the dependency to d-unit via the "path" attribute.

While executing dub build, there is now an error thrown

Could not find a valid dependency tree configuration: Package d-unit contains invalid dependency unit-threaded (no version candidates)

Although I do not use this configuration, dub will check the dependency and will fail the build. Could you check whether you can enabled fluent assertions without having a dependency to unit-threaded? d-unit is such an important library, it would be nice if it is completely independent.

andre2007 commented 6 years ago

A solution could be to set the dependency to unit-threaded as optional like described here https://code.dlang.org/package-format?lang=json

linkrope commented 6 years ago

Does the latest simplified dub.json work for you?

andre2007 commented 6 years ago

yes, thanks a lot:)