resolved workspace adjustments for topological order

This commit is contained in:
2026-03-24 13:42:14 +00:00
parent c74bbf03b4
commit efa8063b57
9 changed files with 42 additions and 19 deletions
@@ -22,15 +22,12 @@ public class DepsPipelineStage implements PipelineStage {
return ReadOnlyCollection.with(BuildingIssue
.builder()
.error(true)
.message("[DEPS]: rootProjectId directory no found: " + ctx.config.getRootProjectPath())
.message("[BUILD]: root project directory no found: " + ctx.config.getRootProjectPath())
.build());
}
final var cfg = new DependencyConfig(false, rootCanonPath);
final var resolvedWorkspace = DependencyService.INSTANCE.run(cfg, logs);
for (final var pId : resolvedWorkspace.stack().projects()) {
final var pd = resolvedWorkspace.graph().projectTable().get(pId);
logs.info("Project [ " + pd.getName() + " ] read");
}
resolvedWorkspace.topologicalOrder().forEach(pd -> logs.info("Project [ " + pd.getName() + " ] read"));
ctx.resolvedWorkspace = resolvedWorkspace;
return ReadOnlyCollection.empty();
}