Help us shape the future of Go! Take the 2026 Go Developer Survey

skillmigration

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package skillmigration protects converted local slots during supported rollback and CLI downgrade operations. It contains coordinates, never content.

Index

Constants

View Source
const MinimumCLI = "1.0.0"

MinimumCLI is the first CLI release with the migration's ownership safeguard. This is a CLI capability boundary, not a skill-content release/version.

Variables

This section is empty.

Functions

func ActiveNames

func ActiveNames(root string) (map[string]bool, error)

ActiveNames returns occupied imported slots with the migration's genuine repository/path lock identity. Bad evidence blocks mutation rather than guessing.

func CheckConfig

func CheckConfig(raw []byte, active map[string]bool) error

CheckConfig preserves import ownership when a rollback restores configuration.

func CheckVersion

func CheckVersion(root, target string) error

CheckVersion checks capability before locking and recovering unsafe handoffs.

func CheckVersionLocked

func CheckVersionLocked(root, target string) error

CheckVersionLocked refuses a CLI that can recreate converted local templates. Callers hold the project lock and have recovered imports before invoking it.

func LocalSlot

func LocalSlot(name string) string

LocalSlot is the trusted path a converted import must not recreate.

func WithRecovered

func WithRecovered(root string, fn func() error) error

WithRecovered serializes a supported operation with imports and projection.

func WithRecoveredContext

func WithRecoveredContext(ctx context.Context, root string, fn func() error) error

WithRecoveredContext recovers under the project lock unless ctx is canceled.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL