DIP11: Automatic downloading of libraries

Jacob Carlborg doob at me.com
Fri Jun 17 12:08:14 PDT 2011


On 2011-06-15 17:37, David Gileadi wrote:
> On 6/14/11 6:53 AM, Andrei Alexandrescu wrote:
>> http://www.wikiservice.at/d/wiki.cgi?LanguageDevel/DIPs/DIP11
>>
>> Destroy.
>
> I keep thinking that if we build a separate dget, dmd could call it even
> if there weren't a URL embedded in the source. If dget had a list of
> central repositories then it could simply look in them for the
> package/module and compilation would magically work with or without a
> pragma.
>
> In any case I suspect that a more formal versioning system is needed.
> One way of supporting versions would be to make dget aware of source
> control systems like svn, mercurial and git which support tags.
>
> The pragma could support source control URLs, and could also include an
> optional version. dget could be aware of common source control clients,
> and could try calling them if installed, looking for the code tagged
> with the provided version. If no version were specified then head/master
> would be used.

If you just want to clone a repository from, i.e. github or bitbucket 
you can just do a simple HTTP download, no need for a SCM client.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list