Lockfile
The lockfile pins each Startup Template and Product Template a Startup extends to a Version by fingerprint, so upgrades arrive as reviewed Changes.
| Property | Value |
|---|---|
| Path | startups.lock |
| Holds | Version |
| Kind | file |
| Leaders | db-first, git-first |
| Team | Engineering Team |
| Written by | Template.extend, Template.upgrade |
| Compiled by | StartupBuilder |
Example
startups.lock in a Startup repository.
{
"lockfileVersion": 1,
"pins": {
"agent-run-services": { "version": 4, "digest": "sha256: 7be2c09d" },
"services-as-software": { "version": 11, "digest": "sha256: e1a6f3b8" }
}
}Props
The keys the file takes.
| Prop | Type | Required | Description |
|---|---|---|---|
lockfileVersion | number | required | The format version: 1. |
pins | json | required | One pin per Startup Template or Product Template the Startup extends, keyed by its id. |
version | number | Inside a pin: the pinned Version. | |
digest | string | Inside a pin: sha256: over the Version’s parsed canonical form. |
Generates
StartupBuilder compiles it into these records, Verbs and routes.
| Kind | What |
|---|---|
| Records | Version |
| Verbs | Template.extend, Template.upgrade |
| Routes | None. |