Poor error message when vindex/cmd/sumdbverify encounters a git repository with unexpected owner
维护者通常 1 天内回复
评估
调研方向
Start at the vindex/cmd/sumdbverify command and reproduce the failure against a read-only git checkout with an ownership mismatch. Trace how the git error becomes the reported “could not find a recognized version control system” message; done means unexpected ownership is reported clearly while other repository-detection errors remain understandable.
由索引模型根据 Issue 内容生成。
描述
I was trying github.com/transparency-dev/incubator/vindex/cmd/sumdbverify@main --mod_root /host in a container, where /host was a read-only mount of a git checkout on the container host. In this setup, I had an ownership mismatch, and I got somewhat confusing error messaged from sumdbverify: failed to create zip file: create zip from version control system /host: could not find a recognized version control system at "/host".
When I ran git directly, e.g., (cd /host && git log) I got a better error message that explained the problem
fatal: detected dubious ownership in repository at '/host'
To add an exception for this directory, call:
git config --global --add safe.directory /host
It would be nice if the sumdbverify error reporting mentioned unexpected ownership, rather than telling me that there's no git repository.
(And running the suggested git config command solved the problem, and made sumdbverify happy).
- 主要语言
- Go
- 星标
- 5
- 派生
- 9
- 平均合并
- 22 小时 1 分钟
- 30 天内合并 PR
- 21
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
transparency-dev/incubator 的其他 Issue
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
transparency-dev/incubator#91 ·
维护者通常 1 天内回复
-
enhancement
难度 3/5 1-2 天 新手友好度 45/100
transparency-dev/incubator#77 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
transparency-dev/incubator#75 ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
transparency-dev/incubator#74 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
transparency-dev/incubator#64 ·
维护者通常 1 天内回复
查看 transparency-dev/incubator 的全部 Issue
相似的 Issue
-
iOS: Clear Context (/clear) and model picker fallback use negative agent check instead of isClaude未关闭
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
go good first issue test
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复
-
bug github_actions good first issue
难度 1/5 1 小时以内 新手友好度 88/100
libr-forum/libr#77 ·
维护者通常 1 天内回复
-
[UI] Guard webApis against undefined window in SSR environments可能已有人在做 @madhavzanwar 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复