Poor error message when vindex/cmd/sumdbverify encounters a git repository with unexpected owner

未关闭
#69 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@mhutchinson 已经在做这个了。

开始于 2026年7月29日。

  • #153 来自 @mhutchinson —— 未关闭
  • #197 来自 @mhutchinson —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
50/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
go
领域
cli

调研方向

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 内容生成。

描述

bug

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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

transparency-dev/incubator 的其他 Issue

查看 transparency-dev/incubator 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。