mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-09 17:19:45 -04:00
d3aea49b6e
Fixes #4651 When `spacetime.json` has a top-level `module-path` and `generate` entries: ```json { "module-path": "./server", "generate": [ { "language": "rust", "out-dir": "./game_client/src/bindings" } ] } ``` `spacetime dev` passed the generate entries to `exec_from_entries` without inheriting the top-level `module-path`. The generate step then fell back to the hardcoded `spacetimedb` default, failing with: ``` Error: Could not find module source at '.../spacetimedb'. ``` The standalone `spacetime generate` command already handled this correctly via `collect_all_targets_with_inheritance()` (which merges entity fields into generate entries), but `spacetime dev` bypassed that path and read `config.generate` directly. **Fix**: Inject the top-level `module-path` into generate entries that do not specify their own, before passing them to `exec_from_entries`. Co-authored-by: clockwork-labs-bot <clockwork-labs-bot@users.noreply.github.com>