On Sat, 10 Oct 2015 15:35:04 GMT, Andre wrote:

I am using cloud foundry in the office to write cloud applications in D.
I have following development request. For the full context of the request,
please also see http://forum.dlang.org/post/vbeywgqdsuczhrykmlax@forum.dlang.org

I wrote a http/OData library in the office and uploaded it to the company internal github.
The cloud foundry buildpack shell script loads in addition to the dmd and dub archive
also this git repository and added it to DUB with command "add-local". This is a bad hack, but I cannot publish it on code.dlang.org due it is an company internal library.

I wish dub would support to specifiy a git repository.

This is planned in one form or another, but there is no schedule for this until someone volunteers to actually implement it. My preferred solution is to recognize git URLs in dub.selections.json (so that dub.json retains a clean version based dependency scheme). Alternatively, it could be supported in dub.json, but code.dlang.org would only accept packages with version based dependencies.

With this feature, you could push d applications to Cloud Foundry which either uses a http engine
from code.dlang.org (vibe-d with libasync) or in a company scenario, from an internal git repository.

=> A workaround would be my other feature request (Specifying the package repository in dub.json)

I think that dub.json is the wrong place for this, but I'd propose to support a dub.settings.json in the package directory, which overrides local settings whenever the package is built as the root package. That would trivially enable setting custom registries.