Skip to content

fix(backup): accept Operit package variants - #939

Merged
AAswordman merged 1 commit into
mainfrom
fix/snapshot-package-prefix
Aug 13, 2026
Merged

fix(backup): accept Operit package variants#939
AAswordman merged 1 commit into
mainfrom
fix/snapshot-package-prefix

Conversation

@AAswordman

Copy link
Copy Markdown
Owner

变更说明 / Description

背景与动机 / Context and motivation

文件快照导入会按备份清单中的包名与当前安装包名完全相等校验,导致正式包与 com.ai.assistance.operit.debug 等同一 Operit 命名空间的构建变体之间无法互相导入。

改动范围 / Changes

  • 仅接受以 com.ai.assistance.operit 开头的快照清单包名
  • 添加根包名、.debug.clone 允许,以及非 Operit 前缀拒绝的 JVM 单元测试

兼容性与风险 / Compatibility and risks

快照格式没有变化。正式包和同一 Operit 命名空间的构建变体可以互相导入;其他包名仍会被拒绝。

关联 Issue / Related issue

N/A - 修复已报告的文件快照导入包名校验问题。

验证方式 / Verification

检查或命令:git diff --check
环境与变体:Windows,源代码静态检查
结果:通过;未运行 Gradle 测试/构建,遵循仓库 AGENTS.md 的默认约束

检查清单 / Checklist

  • 我已记录可复现验证和未运行项原因 / Reproducible verification and reasons for unrun checks are recorded
  • 我已确认 Candidate checks 覆盖改动范围,并会处理技术失败项 / Candidate checks covers the change scope and technical failures will be addressed
  • 最终 diff 无无关、临时、生成、二进制或敏感内容 / Final diff has no unrelated, temporary, generated, binary, or secret content
  • 已提供对应的回归、UI、文档/字符串或兼容性证据 / Relevant regression, UI, docs/strings, or compatibility evidence is provided

@AAswordman
AAswordman merged commit 7c8a787 into main Aug 13, 2026
1 check passed
@AAswordman
AAswordman deleted the fix/snapshot-package-prefix branch August 13, 2026 01:01
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.

1 participant