sourcegraph / sourcegraph/src-cli
repository does not exist
还没有人认领这个 Issue。
- 主要语言
- Go
- 星标
- 356
- 派生
- 76
- 平均合并
- 1 天 2 小时
- 30 天内合并 PR
- 13
描述
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
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 src search --json 入口点开始,跟踪 search.results.results[].file.content 处对 GraphQL 错误的处理。使用提供的查询作为起点,不过复现需要报告人的企业数据。完成的标准是:缺少某个 repository 时不会导致整个搜索失败,其余结果仍会以一致的方式处理。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- go, graphql
- 领域
- api, cli
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100