Skip to content

xlings: the recommended spelling is the namespace on the key, and the advisory teaches it (2026.9.3.2) - #549

Merged
Sunrisepeak merged 1 commit into
mainfrom
chore/recommended-form
Sep 3, 2026
Merged

xlings: the recommended spelling is the namespace on the key, and the advisory teaches it (2026.9.3.2)#549
Sunrisepeak merged 1 commit into
mainfrom
chore/recommended-form

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

[xlings.workspace] accepts the namespace on either half. This settles which one an author writes, and makes mcpp suggest it.

[xlings.workspace]
"xim:picolibc-riscv" = "1.8.12"

An entry names a package and then says which version of it, so the namespace belongs to the name. Official packages use that form.

Why it matters that the advisory changed

The message for the superseded [xlings] deps key suggested picolibc-riscv = "xim:1.8.12". That form is accepted and is what the materialised .xlings.json carries — a key there is an xvm target and the scope qualifies the version — but that is the file's vocabulary, not the author's. A suggestion is copied, so one that teaches the non-recommended form pushes the convention the wrong way.

XlingsEntry::authored_line is now the recommended spelling and the advisory's only source for it, so the message and the documentation cannot drift.

Scope

Parsing is unchanged — both forms produce an identical entry — and so is the materialised file. What changes is one message, and the examples in docs/05 §2.13 (which now states the form and why the other is still accepted), docs/13, and examples/07-project-subos. Both languages.

Verified: test_manifest asserts the advisory carries the quoted-key form; e2e 331 asserts the same on a real build; 88 and 205 re-run.

…and the advisory teaches it

An entry names a package and then says which version of it, so the namespace
belongs to the name: "xim:picolibc-riscv" = "1.8.12". Official packages use
that form.

The advisory for the superseded deps key suggested the other one. That form is
accepted and is what the materialised .xlings.json carries — a key there is an
xvm target and the scope qualifies the version — but it is the file's
vocabulary, not the author's. A suggestion is copied, so one that teaches the
non-recommended form pushes the convention the wrong way.

XlingsEntry::authored_line is the recommended spelling and the advisory's only
source for it, so the message and the documentation cannot drift. docs/05 states
the form and why the other is still accepted; docs/13 and the project-subos
example follow. Both languages.

Parsing is unchanged, and so is the materialised file.
@Sunrisepeak
Sunrisepeak merged commit 222d6c9 into main Sep 3, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants