package host import "github.com/carlosframework/platform/internal/release" func rootAdoptionOptions(opts []release.PassOption, checks rootRestartChecks, history *release.RootHistoryPass, recovery func() release.PassOption) ([]release.PassOption, error) { legacy, err := checks.allowLegacy() if err != nil || legacy { return opts, err } return append(opts, release.WithRootHistory(history), recovery()), nil }