Pre-alpha. No tagged release and no upgrade path between versions. Use for evaluation and development only, not production.
Addons DevPre-alpha

How to run from `sumeru_custom_addons`

Goal: keep sumeru/ free of local addon churn while still importing sumeru as a library.

Summary

The sibling directory sumeru_custom_addons/ is a small Go module with:

  • Its own go.mod and replace sumeru => ../sumeru
  • A generated addonimports/zimports.go (package addonimports) listing blank imports for addons under sumeru_custom_addons/addons/
  • Its own sumeru.conf (often with sumeru_home pointing at the core checkout)

Canonical sample addon: addons/my_module. Makefile targets: setup | generate | new MODULE=x | run | build | install | update.

Steps

  1. Copy sumeru.conf.examplesumeru.conf and set database + addons_path (typically ../sumeru/addons, ../sumeru_addons, and ./addons for core + standard + custom modules).
  1. From sumeru_custom_addons/:

```bash

make setup

make new MODULE=my_module

make install MODULES=my_module

make run

```

| Target | Effect |

| ------ | ------ |

| make setup | Wire go.mod replaces, generate imports, create sumeru.conf if missing |

| make generate | Refresh addonimports/zimports.go, each custom addon’s zmodels.go / zrefs.go, and overwrite that addon’s init.go to models-only |

| make new MODULE=x | Scaffold with sumeru-bp into addons/, then generate |

| make install MODULES=x | -i then exit |

  1. After adding a model struct, run make generate again. Do not hand-edit generated files.

See also