Run downstream preflight after preparation
This commit is contained in:
@@ -85,15 +85,16 @@ func executePlanWithDependencies(ctx context.Context, cfg *config.Config, plan B
|
||||
if err := initializeLockedInvocation(runtime); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := inspectInvocationRequirements(runtime); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := composeInvocation(runtime); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
runtime.env.Info("selected run destinations", "session", runtime.identity.SessionID, "run", runtime.identity.RunID, "manifest", runtime.manifestPath, "workspace", runtime.identity.LocalWorkDir)
|
||||
downstreamChecked := false
|
||||
for index, selected := range runtime.stages {
|
||||
if selected.Name() != "prepare" && !downstreamChecked {
|
||||
downstreamChecked = true
|
||||
if err := inspectInvocationRequirements(runtime, index); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
if err := ctx.Err(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user