Select importers when go.mod / go.sum dependencies change
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- go, typescript
- 领域
- ci-cd
调研方向
Start by reading #76 and the existing lockfile narrowing for yarn.lock/package-lock.json (#66), since this issue mirrors it for Go. The work lives where the Go adapter produces changed-package evidence: diff base/head go.mod require versions and go.sum, then use go list -deps Module.Path data to map local packages to external modules. Implement all listed fallbacks, and add the fixture where a imports github.com/x/y and b does not; done when bumping y selects only a and a replace change still falls back.
由索引模型根据 Issue 内容生成。
描述
Part of #76.
Any change to go.mod or go.sum falls back today (Language/framework configuration changed: go.mod). So does every Dependabot or Renovate bump. The JS side already narrows a lockfile change to the dependencies that changed (see yarn.lock/package-lock.json handling and #66), and Go can do the same.
Proposal
- Diff the base and head
go.mod(requireversions only) andgo.sum. When only the versions of some modules changed, select the local packages whosego list -depsclosure includes a package from those modules. - The
go listoutput already lists each dependency package'sModule.Path, so the adapter needs to record, for each local package, which external modules it reaches.
Must fall back (blocker)
- Any change to the
go/toolchainline,replace,exclude,retractorgodebug. - A changed module that
go listcan't resolve offline. go.sumchanges not explained by thego.moddiff.
Done when
- A fixture where
aimportsgithub.com/x/yandbdoesn't shows that bumpingyselects onlya, and adding areplacestill falls back.
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 4
- 平均合并
- 18 小时 41 分钟
- 30 天内合并 PR
- 48
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DiffCI/core 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Planner: splitParts regex is quadratic on a quote followed by many backticks, so the fuzz test fails at random可能已有人在做 @FredApps 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
Agent tools: changed_files lists only the new path of a renamed file可能已有人在做 @FredApps 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
adapter good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
相似的 Issue
-
agent-ready area: ui-server priority: p3 type: test
难度 2/5 1-3 小时 新手友好度 78/100
schlessera/brain-kit#4249 ·
维护者通常 1 天内回复
-
documentation tool triaged
难度 2/5 1-3 小时 新手友好度 73/100
can1357/oh-my-pi#19608 · 2 条评论 ·
维护者通常 1 天内回复
-
dependencies tech-debt
难度 2/5 1-3 小时 新手友好度 65/100
bcgov/nr-waste-plus#1549 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
blixvip/solana-token-meta#17 ·
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
blixvip/solana-tx-parse#18 ·