mcpplibs.cmdline: add 0.0.2#1
Merged
Sunrisepeak merged 1 commit intomcpplibs:mainfrom May 8, 2026
Merged
Conversation
Upstream mcpplibs/cmdline tagged v0.0.2 and now ships an upstream mcpp.toml (mcpplibs/cmdline#1). Since the `mcpp` field in xpkg.lua is package-level (not per-version), we keep the existing Form B inline table to stay compatible with 0.0.1 — the src layout is identical across both versions, so a single descriptor covers both. When 0.0.1 is dropped, the inline `mcpp = { ... }` block can be replaced with `mcpp = "*/mcpp.toml"` to source build info directly from the upstream manifest. - linux/macosx/windows xpm: add 0.0.2 entry url: https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.2.tar.gz sha256: 4f3e2b8dc4d9f11bdd9a784a9914e889234ac305e1020282ffa03f506b75d52a - Refresh the comment header explaining why Form B stays.
eacd33e to
87cbe11
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mcpplibs/cmdline已经 tag 了v0.0.2,且 mcpplibs/cmdline#1 把上游mcpp.toml加上了。这个 PR 把 0.0.2 版本加进mcpplibs.cmdline的索引,并保持 0.0.1 继续可用。设计取舍:保留 Form B inline
mcpp = {}块mcpp是 xpkg.lua 的包级字段(看mcpp/src/cli.cppm:1267,extract_mcpp_field一次拿,没有 per-version 分发),所以没法直接「0.0.1 用 inline workaround、0.0.2 用mcpp = "*/mcpp.toml"」。考虑到:
src/**/*.cppm布局完全一致直接保留 inline
mcpp = {}块即可同时支持两版本。等 0.0.1 完全下线后,可以一步切到mcpp = "*/mcpp.toml",由上游 manifest 接管。Changes
xpm = { linux = { ["0.0.1"] = { ... }, + ["0.0.2"] = { + url = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.2.tar.gz", + sha256 = "4f3e2b8dc4d9f11bdd9a784a9914e889234ac305e1020282ffa03f506b75d52a", + }, }, macosx = { 同上 }, windows = { 同上 }, },注意 0.0.2 用
v0.0.2.tar.gz(带v前缀),跟 0.0.1 的0.0.1.tar.gz不一样 —— 因为上游两个 tag 命名风格不同(git ls-remote --tags验证:0.0.1 是refs/tags/0.0.1,0.0.2 是refs/tags/v0.0.2)。Verification
curl -sL <0.0.2 url> | sha256sum与索引里的 sha 一致:4f3e2b8dc4d9f11bdd9a784a9914e889234ac305e1020282ffa03f506b75d52aTest plan
mcpp add "mcpplibs.cmdline@0.0.2"在测试工程里能成功解析 + 构建mcpp add "mcpplibs.cmdline@0.0.1"仍然可用(回归)