You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 605e9c2
Browse filesBrowse the repository at this point in the historyBrowse files
feat(platform): the version group takes part in resolution, and the built-in platform is a series
A platform's [platform.versions] was checked after the walk only. The platform
is the first package the graph resolves, and its group now binds every later
request of a member: a request whose constraint admits the group's version
resolves to it though the index holds a newer patch, and one that does not is
refused before anything compiles, naming the request and the group (SPEC-013
§7.5). The check after the walk stays as an assertion.
The target table selects openkal-platform@^0.24, a series: its newest release
whose [package] mcpp floor this engine meets, skipping and naming a release
made for a newer one; mcpp.lock keeps the release while the series admits it,
and `mcpp update` moves it (SPEC-013 §14, §15.1). A platform patch no longer
needs an mcpp release. e2e 1020 and 1021; SPEC-013 1.4; docs 04, 05, 35, 50.
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/35-platforms.md
+30-11Lines changed: 30 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ The first of these that answers selects the target's platform:
113
113
114
114
| Source | Spelling |
115
115
|---|---|
116
-
| the command line |`--platform openkal-platform@0.24.0`, `--platform path:../openkal-platform`, `--platform none`|
116
+
| the command line |`--platform openkal-platform@0.24.1`, a series `--platform openkal-platform@^0.24`, `--platform path:../openkal-platform`, `--platform none`|
117
117
| the environment |`MCPP_TARGET_X86_64_OPENKAL_PLATFORM=…`|
118
118
| the project |`[target.<selector>] platform = "openkal-platform@0.24.0"`, or `{ path = "…" }`|
119
119
| this machine | the same key in `~/.mcpp/config.toml`|
@@ -160,20 +160,39 @@ same system and architecture that it serves.
160
160
161
161
## The version group
162
162
163
-
`[platform.versions]` names one version of each package of a family whose
164
-
packages pin one another exactly. A graph that holds another version of one of
165
-
them is refused before anything compiles:
163
+
`[platform.versions]` names one version of each package of a family. From mcpp
164
+
2026.11.7.1 the group chooses: the platform is the first package the graph
165
+
resolves, and each later request of a package the group lists, by version,
166
+
resolves to the group's version when its constraint admits it, though the index
167
+
holds a newer patch. openkal's packages name one another by compatible ranges
168
+
(`openkal-musl = "^0.28.0"`), so the group's choice is what a build links. A
169
+
request the group's version does not satisfy is refused before anything
170
+
compiles:
166
171
167
172
```
168
-
error: openkal-musl 0.22.2 is in this build, and the platform openkal-platform 0.24.0 is a version group that names openkal-musl 0.28.0.
169
-
requested by: own
170
-
The family's packages pin one another exactly, so two versions of one of
171
-
them cannot be linked into one program. Either select the platform release
172
-
of that version ([target.<selector>] platform = "openkal-platform@<version>"), or write
173
-
openkal-musl = "0.28.0" where it is requested.
173
+
error: openkal-musl is requested as '^0.27.0' by app, and the platform openkal-platform 0.24.1 is a version group
174
+
that names openkal-musl 0.28.1.
175
+
The group chooses one version of each package of the family for a
176
+
build. Either select the platform release of the version you need
177
+
([target.<selector>] platform = "openkal-platform@<version>"), or admit 0.28.1 where
178
+
it is requested (openkal-musl = "^0.28.1").
174
179
```
175
180
176
-
A package taken from a directory or a repository is not bound by the group.
181
+
A package built for this machine only (a tool's) and a package taken from a
182
+
directory or a repository are not bound by the group. An mcpp before
183
+
2026.11.7.1 checks the group after resolution instead; a family released as one
184
+
index change resolves the same either way.
185
+
186
+
## The built-in platform is a series
187
+
188
+
The target table selects `openkal-platform@^0.24` for the two ok-image targets:
189
+
a series. A series takes its newest release whose `[package] mcpp` floor this
190
+
mcpp meets, naming each release it skips for a newer engine, and `mcpp.lock`
191
+
records it; the next build takes the recorded release while the series admits
192
+
it. `mcpp update` (or `mcpp update openkal-platform`) drops the record, and the
193
+
build after it takes the newest release again. A project selects a series of
194
+
its own the same way, `platform = "openkal-platform@^0.24"`, and an exact
0 commit comments