Reject unsupported session state before execution and restore
This commit is contained in:
@@ -51,6 +51,11 @@ func executePlanWithDependencies(ctx context.Context, cfg *config.Config, plan B
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Reject unsupported existing state before creating or normalizing layout.
|
||||
// The locked initialization reads it again to protect against concurrent work.
|
||||
if _, _, err := loadManifestAtPathIfPresent(ctx, &manifest.LocalStore{}, runtime.manifestPath); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := prepareInvocationLayout(runtime); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user