Example #1
0
        public void AddBuiltModule(Dep module, Dictionary <string, string> currentCommitHashes)
        {
            var configs      = new ConfigurationParser(new FileInfo(Path.Combine(Helper.CurrentWorkspace, module.Name))).GetConfigurations();
            var childConfigs = new ConfigurationManager(module.Name, configs).ProcessedChildrenConfigurations(module);

            childConfigs.Add(module.Configuration);

            foreach (var childConfig in childConfigs)
            {
                var deps           = BuildPreparer.Shared.BuildConfigsGraph(module.Name, childConfig).Keys.ToList();
                var depsWithCommit = deps
                                     .Where(dep => currentCommitHashes.ContainsKey(dep.Name) && currentCommitHashes[dep.Name] != null)
                                     .Select(dep => new DepWithCommitHash(dep, currentCommitHashes[dep.Name]))
                                     .ToList();
                modulesWithDeps[new Dep(module.Name, null, childConfig)] = depsWithCommit;
            }
        }