On 06/01/2015 02:51 PM, Nick Sabalausky wrote:
On 06/01/2015 09:22 AM, Rikki Cattermole wrote:

Something I've thought about but haven't suggested up to now is making
dub-repo to support personal projects.
Basically one repo per person preconfigured if e.g. Github/Bitbucket is
specified.

github.com/rikkimax/dubcode

Just as an idea for what I'm meaning url wise.

So then when specifying a dependency in dub, its just a matter of saying
<person>:<subproject>


Already works.

$ git clone https://github.com/rikkimax/dubcode.git path-to-dubcode
$ dub add-local path-to-dubcode

Done.


Ehh, to clarify a few things:

$ cd my-project
$ cat dub.json
{
    "name": "my-project",
    "dependencies": {
        "not-in-dub-repo": "~>1.1.0"
    }
}
$ git clone https://github.com/user/not-in-dub-repo.git path/to/not-in-dub-repo
$ cat path/to/not-in-dub-repo/dub.json
{
    "name": "not-in-dub-repo"
}
$ dub add-local path/to/not-in-dub-repo

Reply via email to