fix: 纠正版本基线错误 #27
Open
myxuan475Add on Aug 7
myxuan475
Aug 7

fix: 纠正版本基线错误

likedislike
Merge blocked
myxuan475myxuan475
Aug 7 Pushed 3 commits:2aff0190-2 commits from branch master,02a38ef8-Merge branch 'fix_base' of git@gitcode.com:thirdparty-transplant/rntpc_react-native-create-thumbnail.git into 'master'
myxuan475myxuan475
Aug 7 Associated issue: fix: 纠正版本基线错误
openharmony_ci
openharmony_ciCollaborators
Aug 7 Comments:

感谢提交 Pull Requests!
Thanks for submitting a pull request.

likedislike
openharmony_ciopenharmony_ciCollaborators
Aug 7 Added label: dco检查成功
myxuan475
myxuan475
Aug 7 Comments:

start build

likedislike
openharmony_ci
openharmony_ciCollaborators
Aug 7 Comments:

首次触发
门禁构建开始,包含静态检查、代码编译【rntpc_component编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a75828764650f998b9c6fef/runlist

likedislike
openharmony_ciopenharmony_ciCollaborators
Aug 7 Added label: 静态检查失败
openharmony_ci
openharmony_ciCollaborators
Aug 7 Comments:

代码门禁未通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6a75828764650f998b9c6fef/runlist

静态检查:

# check type result report
1 codeCheck noPass >>>

编译测试:
# Device build result package
1 rntpc_component pending NA

likedislike
cpf-manager
cpf-managerCollaboratorsAug 7Start code review1
README.OpenSource
@@ -4,3 +4,3 @@
44 "License": "MIT License",
55 "License File": "https://github.com/souvik-ghosh/react-native-create-thumbnail/blob/master/LICENSE",
6- "Version Number": "2.0.1",
6+ "Version Number": "2.2.0",
cpf-manager
cpf-managerAug 7Comments:

【AI-Review】【一般】【基础代码问题】【代码逻辑错误】README.OpenSource Version Number 与 master 分支 package.json peerDependencies 不一致

● 问题:PR 将 README.OpenSource 的 "Version Number" 从 "2.0.1" 改为 "2.2.0",但 master 分支(本 PR 目标分支)的 package.json 中 peerDependencies.react-native-create-thumbnail 声明为 "2.0.1"。README.OpenSource 的 "Name" 字段为上游项目名 "react-native-create-thumbnail","Upstream URL" 指向上游仓库 https://github.com/souvik-ghosh/react-native-create-thumbnail,因此 "Version Number" 应表示上游社区基线版本号,应与 package.json 的 peerDependencies.react-native-create-thumbnail 保持一致。修改前 "Version Number" 为 "2.0.1",与 package.json 一致;修改后为 "2.2.0",与 package.json 矛盾。

本 PR 对 br_rnoh0.77 和 br_rnoh0.72 分支的"社区基线版本"修改逻辑是正确的——分别改为 2.0.1 和 2.0.0,与各自分支 package.json 的 peerDependencies.react-native-create-thumbnail(br_rnoh0.77 为 "2.0.1",br_rnoh0.72 为 "2.0.0")对齐。但对 master 分支的 README.OpenSource 却采用了不同逻辑:未对齐 master 的 package.json peerDependencies(2.0.1),而是对齐 README.md 中 master 行的"社区基线版本"(2.2.0)。而 README.md 中 master 行的"社区基线版本"(2.2.0)本身与 master 的 package.json peerDependencies(2.0.1)不一致,本 PR 将该错误值同步到了 README.OpenSource。

● 影响:README.OpenSource 是 OpenHarmony 三方库元数据文件,用户和工具链依据其 "Version Number" 判断上游社区基线版本。修改后该值为 2.2.0,而 master 分支 package.json 声明的 peer 依赖为 2.0.1,两者矛盾。用户安装 @react-native-ohos/react-native-create-thumbnail 时,npm 按 package.json peerDependencies(2.0.1)校验上游依赖,与文档声称的 2.2.0 不一致,造成版本信息混乱。

● 建议:两种修复方案任选其一:

  1. 保持 README.OpenSource 的 "Version Number" 为 "2.0.1",与 master 的 package.json peerDependencies 保持一致(与本 PR 对 br_rnoh0.77/br_rnoh0.72 的修改逻辑一致)。
  2. 若 master 确实要升级到上游 2.2.0 基线,则需同步更新 master 的 package.json 中 peerDependencies.react-native-create-thumbnail 为 "2.2.0",并确认 README.md/README_en.md 中 master 行的"社区基线版本"与之一致。
likedislike
myxuan475myxuan475
Aug 7 Force-pushed 1 commits:68cd6866-fix: 纠正版本基线错误
myxuan475
myxuan475
Aug 7 Comments:

start build

likedislike
openharmony_ci
openharmony_ciCollaborators
Aug 7 Comments:
myxuan475myxuan475
Aug 7 Pushed 3 commits:2aff0190-2 commits from branch master,80b89478-Merge branch 'fix_base' of git@gitcode.com:thirdparty-transplant/rntpc_react-native-create-thumbnail.git into 'master'
myxuan475
myxuan475
Aug 7 Comments:

start build

likedislike
openharmony_ciopenharmony_ciCollaborators
Aug 7 Removed label: 静态检查失败
openharmony_ci
openharmony_ciCollaborators
Aug 7 Comments:

代码有更新,重置PR验证状态

likedislike
openharmony_ci
openharmony_ciCollaborators
Aug 7 Comments:

感谢提交 Pull Requests!
Thanks for submitting a pull request.

likedislike
openharmony_ci
openharmony_ciCollaborators
Aug 7 Comments:

本地或库上代码有更新,全量重新构建,重置所有关联PR的验证状态
门禁构建开始,包含静态检查、代码编译【rntpc_component编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a758c8b64650f998ba1c2de/runlist

likedislike
openharmony_ciopenharmony_ciCollaborators
Aug 7 Added label: 静态检查失败
openharmony_ci
openharmony_ciCollaborators
Aug 7 Comments:

代码门禁未通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6a758c8b64650f998ba1c2de/runlist

静态检查:

# check type result report
1 codeCheck noPass >>>

编译测试:
# Device build result package
1 rntpc_component pending NA

likedislike