repository does not exist
还没有人认领这个 Issue。
评估
调研方向
从 src search --json 入口点开始,跟踪 search.results.results[].file.content 处对 GraphQL 错误的处理。使用提供的查询作为起点,不过复现需要报告人的企业数据。完成的标准是:缺少某个 repository 时不会导致整个搜索失败,其余结果仍会以一致的方式处理。
由索引模型根据 Issue 内容生成。
描述
When I perform a search like
src search --json "repo:has.file(package.json) file:package.json "some-package" count:1000"
The whole search fails for a repo that "does not exist"
GraphQL errors: {
"message": "repository does not exist: repo-name",
"path": [
"search",
"results",
"results",
309,
"file",
"content"
]
The query works with a small count before it hits an error. Is there a way for the cli to skip GraphQL errors? The query works fine within the sourcegraph webapp.
I cannot give a case to reproduce because this depends on our corporate data
- 主要语言
- Go
- 星标
- 356
- 派生
- 76
- 平均合并
- 1 天 2 小时
- 30 天内合并 PR
- 13
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sourcegraph/src-cli 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
sourcegraph/src-cli#1345 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
sourcegraph/src-cli#1144 · 3 条评论 ·
-
good first issue ux
难度 4/5 3-5 天 新手友好度 45/100
sourcegraph/src-cli#930 · 1 条评论 ·
查看 sourcegraph/src-cli 的全部 Issue
相似的 Issue
-
kind/bug needs-triage
难度 1/5 1 小时以内 新手友好度 72/100
matrixorigin/matrixone#29223 ·
-
needs-acceptance wg/data-plane-networking
难度 2/5 1-3 小时 新手友好度 78/100
vllm-project/semantic-router#4024 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
alexgorbatchev/dotfiles#107 ·
-
难度 1/5 1 小时以内 新手友好度 84/100