added specfic git commit or branch dependency
This commit is contained in:
parent
af7eb61c3d
commit
1bfc07db4b
4 changed files with 24 additions and 4 deletions
|
|
@ -80,7 +80,15 @@ Configuration::Configuration(const nlohmann::json& configs, const nlohmann::json
|
|||
outputDir = fullOutputPath.generic_string();
|
||||
} else if(key == "dependencies") {
|
||||
for (auto it : val) {
|
||||
dependencies.emplace_back(it["path"].get<std::string>(), it["configuration"].get<std::string>());
|
||||
std::string commit;
|
||||
std::string branch;
|
||||
if(it.contains("commit")){
|
||||
commit = it["commit"].get<std::string>();
|
||||
}
|
||||
if(it.contains("branch")){
|
||||
branch = it["branch"].get<std::string>();
|
||||
}
|
||||
dependencies.emplace_back(it["path"].get<std::string>(), it["configuration"].get<std::string>(), commit, branch);
|
||||
}
|
||||
} else if(key != "extends") {
|
||||
additionalProperties.insert({key, val});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue