RejectedSoftware Forums

Sign up

Dependence on a git-based project

Hello. I have a dub-project (A) which depends on another dub-project (B).
Both projects are parts of a one system and developed by differend teams.
Project B is a library and it placed in a git-server.

Now I want to write dub.conf file for project A that project B automatically fetched from git and built during A building.
I may write local path to B in "path" section:
"dependencies": {
"B": {"path": "../bpath"}
}
However I need to manulaly fetch B to it dir before A building.
Can I write something like following?
"dependencies": {
"B": {"git-path": "git.mydomain/user/project
b.git"}
}

Maybe another ideas?

Re: Dependence on a git-based project

Sorry, my previous post has been broken.

Hello. I have a dub-project (A) which depends on another dub-project (B).
Both projects are parts of a one system and developed by differend teams.
Project B is a library and it placed in a git-server.

Now I want to write dub.conf file for project A that project B automatically fetched from git and built during A building.
I may write local path to B in "path" section:

 "dependencies": {
    "B": {"path": "../b_path"}
 }

However I need to manulaly fetch B to it dir before A building.
Can I write something like following?

 "dependencies": {
    "B": {"git-path": "http://git.mydomain/user/project_b.git"}
 }

Maybe another ideas?

Re: Dependence on a git-based project

On 2016-12-04 03:44, Igor Stepanov wrote:

Sorry, my previous post has been broken.

Hello. I have a dub-project (A) which depends on another dub-project (B).
Both projects are parts of a one system and developed by differend teams.
Project B is a library and it placed in a git-server.

Now I want to write dub.conf file for project A that project B automatically fetched from git and built during A building.
I may write local path to B in "path" section:

 "dependencies": {
    "B": {"path": "../b_path"}
 }

However I need to manulaly fetch B to it dir before A building.
Can I write something like following?

 "dependencies": {
    "B": {"git-path": "http://git.mydomain/user/project_b.git"}
 }

Maybe another ideas?

Dub does not support Git repositories. But you could try cloning the
other Git repository using the preGenerateCommands build setting in Dub.

/Jacob Carlborg