Share pipeline module and reference target selection

This commit is contained in:
2026-11-26 02:39:10 +00:00
parent 39e578dc60
commit 510a079976
6 changed files with 339 additions and 138 deletions

View File

@@ -10,6 +10,7 @@ import (
type PipelineLayout struct {
ID string
ExplicitSteps bool
Profile PipelineProfile
Steps []PipelineLayoutStep
ConfiguredLaneIDs []string
}
@@ -41,7 +42,7 @@ func LayoutPipeline(profile PipelineProfile) (PipelineLayout, error) {
if explicit && len(steps) == 0 {
return PipelineLayout{}, fmt.Errorf("pipeline %q must declare at least one ordered step", id)
}
layout := PipelineLayout{ID: id, ExplicitSteps: explicit}
layout := PipelineLayout{ID: id, ExplicitSteps: explicit, Profile: profile}
seenSteps := make(map[string]struct{}, len(steps))
seenLanes := make(map[string]string)
for index, step := range steps {