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

オープン
#69 コメント 0 件 リアクション 0 件 担当者 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分
マージ済み PR(30日)
21

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

transparency-dev/incubator のほかの issue

transparency-dev/incubator の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。