migrate-v0

command
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command migrate-v0 imports a KanArtist v0 repository (Python-era layout) into Store Spec v1 stores. It is a one-time tool kept out of the ka binary, built to be re-run safely until cut-over:

  • IDs are deterministic and stable across runs (see transform.go).
  • Every file it writes is recorded in <out>/.migrate-v0-state.json. On a re-run it overwrites a file only if the file still has the content it last wrote; files edited since (for example by dogfooding v1) are left alone and reported as conflicts unless --force is given.
  • Files it wrote earlier that the v0 source no longer produces are removed (again, only if unmodified). Anything it did not write is never touched.

Usage:

go run ./tools/migrate-v0 --v0 ../kanartist --out ../ka-stores [--layout split|single] [--commit]

Jump to

Keyboard shortcuts

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