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

Đang mở
#69 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@mhutchinson đang làm issue này rồi.

Từ ngày 29/7/2026.

  • #153 của @mhutchinson — đang mở
  • #197 của @mhutchinson — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
50/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
Go
Star
5
Fork
9
Merge trung bình
22 giờ 1 phút
Pull request đã merge (30 ngày)
21

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của transparency-dev/incubator

Tất cả issue của transparency-dev/incubator

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.