// Set dependency pointers on all contents of the graph. // Has to be done after to test cycles etc. func updateDependencies(graph *core.BuildGraph) { for _, target := range graph.AllTargets() { for _, dep := range target.DeclaredDependencies() { graph.AddDependency(target.Label, dep) } } }
func addDeps(graph *core.BuildGraph, pkg *core.Package) { for _, target := range pkg.Targets { for _, dep := range target.DeclaredDependencies() { graph.AddDependency(target.Label, dep) } } }