问题:因版本号包含“.android8”后缀,导致 Dependabot 自动升级 PR 选择了带后缀的版本
- 项目中配置了 Dependabot 定期扫描并升级第三方依赖。例如,我们希望将
com.alibaba.fastjson2:fastjson2 从 2.0.60 升级到 2.0.61(注意:不是带 .android8 后缀的版本)。然而 Dependabot 生成的 Pull Request 却将版本更新为 2.0.61.android8:
chore(deps): bump com.alibaba.fastjson2:fastjson2 from 2.0.60 to 2.0.61.android8
而我们期望的是:
chore(deps): bump com.alibaba.fastjson2:fastjson2 from 2.0.60 to 2.0.61
此问题在每次升级时都会出现。
由于 GitHub Dependabot 目前不支持针对特定版本后缀的过滤策略,请问有什么方法可以避免定期检查升级时出现这种版本选择偏差?