Work in a team
Decide what goes into version control, and what each teammate runs after cloning. A pre-build check aborts the build on a machine that skipped the import.
What to commit
| Folder | Holds | Version control |
|---|---|---|
Assets/SheetForgeBaked | Baked SOs | Ignored by git |
Assets/SheetForgeGenerated | Generated code | Commit (recommended) |
Baked databases
Baked SOs (Assets/SheetForgeBaked) are a per-machine cache. Ignore them in git. After cloning, each teammate runs Run Import once.
When the project holds several workbooks, each teammate runs Pull every workbook instead. That import also records which workbook owns each generated enum. A fresh clone cannot know that otherwise.
Generated code
Generated code (Assets/SheetForgeGenerated) is your project's own source. Commit it, so a fresh clone compiles before anyone has run an import and schema changes show up in review. The code is deterministic output, so a teammate's import produces the same bytes and creates no churn.
Gitignoring it instead also works. The post-clone Run Import is then what restores compilation. What is committed and what is regenerated covers every artifact, including the Addressables group asset.
The pre-build check
Before every build, a freshness hook checks each workbook and every committed generated Database type in it. A quarantined workbook stops the build at once. Otherwise the baked SO must exist, its schema fingerprint must match the baseline, and the workbook's delivery mode must be able to deliver the database.
If anything fails, the build is aborted with an actionable sentence, so a clone or CI machine can never ship an empty cache silently. Build freshness hook lists what each mode looks for.
Next steps
- Core concepts
Why baked databases are a cache and the sheet is the source.
- Registrations and build checks
More on registrations and the build check.
- Several workbooks
Import several workbooks together.