This commit is contained in:
bQUARKz 2026-02-24 18:58:58 +00:00
parent d06e381d1e
commit 3b477113e1
Signed by: bquarkz
SSH Key Fingerprint: SHA256:Z7dgqoglWwoK6j6u4QC87OveEq74WOhFN+gitsxtkf8

View File

@ -1,5 +1,6 @@
package p.studio.compiler.workspaces.stages; package p.studio.compiler.workspaces.stages;
import lombok.extern.slf4j.Slf4j;
import p.studio.compiler.messages.BuildingIssues; import p.studio.compiler.messages.BuildingIssues;
import p.studio.compiler.messages.DependencyConfig; import p.studio.compiler.messages.DependencyConfig;
import p.studio.compiler.models.BuilderPipelineContext; import p.studio.compiler.models.BuilderPipelineContext;
@ -11,6 +12,7 @@ import java.io.IOException;
import java.nio.file.Path; import java.nio.file.Path;
import java.nio.file.Paths; import java.nio.file.Paths;
@Slf4j
public class DependencyPipelineStage implements PipelineStage { public class DependencyPipelineStage implements PipelineStage {
@Override @Override
public BuildingIssues run(final BuilderPipelineContext ctx, LogAggregator logs) { public BuildingIssues run(final BuilderPipelineContext ctx, LogAggregator logs) {
@ -26,7 +28,7 @@ public class DependencyPipelineStage implements PipelineStage {
} }
final var dependencyConfig = new DependencyConfig(ctx.config.explain(), rootCanonPath); final var dependencyConfig = new DependencyConfig(ctx.config.explain(), rootCanonPath);
ctx.resolvedWorkspace = DependencyService.INSTANCE.run(dependencyConfig, logs); ctx.resolvedWorkspace = DependencyService.INSTANCE.run(dependencyConfig, logs);
ctx.resolvedWorkspace.topologicalOrder().forEach(pd -> logs.info("Project [ " + pd.getName() + " ] read")); ctx.resolvedWorkspace.topologicalOrder().forEach(pd -> logs.using(log).info("Project [ " + pd.getName() + " ] read"));
return BuildingIssues.empty(); return BuildingIssues.empty();
} }
} }