Migrating from kibo 1.2¶
A project generated with kibo 1.2 and the kibo-template-viper 1.2 pack moves to kibo 2 and kibo-template-viper 2.0 in up to three steps. The DSM model, the runtime and the databases do not move: only the generator, the code it generates, and the code written against that code.
Migrating a project — the generation script (
generate.py, ordsm_util.py create_python_package/create_node_package) becomes akibo.tomlrun by kibo-project. Every project takes this step.Migrating a template pack — templates of your own, written for Template Model 1, are rewritten for Template Model 2. Only a project with templates of its own takes this step; the first-party pack is already migrated.
Migrating application code — the code that calls the generated packages moves to their 2.0 surface, in Python, TypeScript and C++.
Do them in this order, each as a change of its own: the generation first, since the other two are checked against what it generates. One exception: a project with templates of its own renders their before with kibo 1.2 first, while kibo 1.2 and its outputs are still in place (see Migrating a project).
- Migrating a project
- Migrating a template pack
- The method: a diff you can account for
- Names you build yourself
- Read the diagnostics, but do not stop there
- The renames
- What reads differently
- Does this affect your pack?
- Templates that emit code calling the generated package
- Naming a type in a message
- Dropping your leaf table
- What Model 2 adds, without breaking anything
- Checklist
- Migrating application code