Add shared-root publish planning
This commit is contained in:
@@ -17,6 +17,9 @@ func Execute(ctx context.Context, req Request, plan Plan) error {
|
||||
case ActionSkipSame, ActionSkipDestinationNewer:
|
||||
return nil
|
||||
case ActionPublishNew, ActionReplaceOlder, ActionForceReplace:
|
||||
if normalizeState(req.State).Mode == config.StateModeSharedRoot || plan.StateMode == config.StateModeSharedRoot {
|
||||
return fmt.Errorf("shared-root publish execution is not implemented")
|
||||
}
|
||||
default:
|
||||
return fmt.Errorf("cannot execute action %s: %s", plan.Action, plan.Reason)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user