Make dub part of the standard dmd distribution

Sönke Ludwig via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 4 01:51:01 PDT 2015


Am 01.06.2015 um 17:16 schrieb "Marc =?UTF-8?B?U2Now7x0eiI=?= 
<schuetzm at gmx.net>":
> Since this thread seems to have turned into a wishlist for dub features,
> I'm going to add one:
>
> Undeprecate dependencies on git branches. They are really not different
> from dependencies with fuzzy "~>" versions. For both, the exact selected
> version can be stored in dub.selections.json.
>
> Use case:
> Making a fix to a third-party project and sharing that fix with other
> team members. Having to create a temporary project on code.dlang.org
> just for that purpose is both a waste of time for developers and a waste
> of resources of community infrastructure.

They are only deprecated within dub.json. You can still use them within 
dub.selections.json. But really, branch based dependencies are simply a 
broken feature. They are completely different to version ranges, because 
they are not at all comparable (to other branches or versions) - at 
least without completely committing to GIT and starting to walk the GIT 
commit graph.

You can also check out certain branches locally and use "dub add-local" 
or "dub add-path" to let DUB use it instead of the publicly registered one.


More information about the Digitalmars-d mailing list