Files
clockwork-labs-bot d3aea49b6e Fix spacetime dev ignoring top-level module-path for generate entries (#4656)
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>
2026-03-21 13:08:43 +00:00
..
2025-08-12 18:20:58 +00:00