fix: E0006 Upgrade 提示按安装布局区分 + AUR 特别关照(bump 至 v2026.8.8.4、新增 mcpp-git) - #395
Merged
Sunrisepeak merged 2 commits intoAug 8, 2026
Merged
Conversation
…于索引下限导致的 E0006;新增 mcpp-git 滚动包,跟随 master 永不滞后)
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.
摘要
E0006 的
Upgrade:提示只给一个写死的install.sh命令,对其它安装方式(AUR)有误导:已装mcpp-bin的用户照做会在~/.mcpp装出第二份,且install.sh不会更新/opt/mcpp里正在运行的那份二进制——"更新无效"的错觉(详见 #394)。本 PR 让提示按安装布局给出正确指引,并顺带给 Arch 用户一份"特别关照":
改动 1:E0006 提示按安装布局区分(
src/pm/index_contract.cppm)self_exe_path()检测二进制是否落在发行版管理目录(/opt/mcpp,即 AUR 布局);paru -Syu mcpp-bin或yay -Syu mcpp-bin),并说明 install.sh 装的是另一份、不会更新这份;'xlings update mcpp' (recommended default installer);floor_violation契约不变;新增导出纯函数e0006_message(violation, distroManaged),便于单测。测试:
tests/unit/test_index_contract.cpp新增E0006MessageSwitchesUpgradeAdviceByLayout;mcpp test全量 68/68 通过。改动 2:AUR 特别关照 😋(
scripts/aur/)mcpp-bin/mcpp-m至 v2026.8.8.4(经update.sh,真实 sha256)——消除"低于索引下限"导致的 E0006;mcpp-git(VCS 包,source直接拉官方仓库 master,复用mcpp-m的mcpp-bin自举骨架与/opt+wrapper 布局)——滚动跟踪 master,永不滞后;pkgver()用git describe取 tag+提交距离;scripts/aur/README.md同步文档(三包布局、mcpp-git说明、update.sh只负责 release-pinned 包)。tips: 我就是想尝鲜的滚动玩家之一 😋
相关