carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package host
2
3import "github.com/carlosframework/platform/internal/release"
4
5func rootAdoptionOptions(opts []release.PassOption, checks rootRestartChecks, history *release.RootHistoryPass, recovery func() release.PassOption) ([]release.PassOption, error) {
6 legacy, err := checks.allowLegacy()
7 if err != nil || legacy {
8 return opts, err
9 }
10 return append(opts, release.WithRootHistory(history), recovery()), nil
11}
12