Am 30.10.2020 um 14:40 schrieb Andre Pany:
On Friday, 30 October 2020 at 13:34:24 UTC, Jacob Carlborg wrote:
On Thursday, 29 October 2020 at 06:42:54 UTC, ikod wrote:
Hi,
requests 2.0.0 released with single change - support for vibe-d moved
to separate subpackage.
The goal of this update is to prevent dub from downloading vibe-d
packages for optional subConfiguration.
Another approach is to check if vibe.d is available using version
conditions [1]. This is how the DDB [2] package supports both vibe.d
sockets and Phobos sockets.
[1]
https://github.com/pszturmaj/ddb/blob/97bc3652b05492e7917888c92e59f4576a69dfa8/source/ddb/postgres.d#L189-L216
[2] https://code.dlang.org/packages/ddb
--
/Jacob Carlborg
The important point here is, fetching and building "requests" does no
longer trigger downloads of vibe.d packages.
This is the case for ddb(?). Therefore I see the pattern "requests" is
using, is also highly interesting for ddb.
Kind regards
Andre
ddb marks the vibe-d dependency as optional, so it *should* not trigger
a download by itself.