Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

t-rust: Source repo comparison flags auxiliary repo directories as "source_repo_only"

Đang mở
#2,256 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

Chưa có ai nhận issue này.

Đá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
57/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python, rust
Lĩnh vực
backend, data

Hướng nghiên cứu

Start by locating the Rust source repository comparison code and the tests that produce source_repo_only results; the issue does not name specific files. Trace how crate contents and Cargo.toml include/exclude rules affect comparison, using the syn example as a reference. Done means auxiliary directories omitted from the published crate no longer appear as mismatches, while real repository differences remain reported.

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

Mô tả

Reference: https://github.com/aboutcode-org/scancode.io/issues/1767#issuecomment-4051759506

When a Rust crate lives at the repository root, the source repo comparison reports every file in directories that exist in the repo but are not shipped in the published crate — such as benches/, dev/, ci/, fuzz/, examples/, tests/, assets/ — as source_repo_only mismatches.

These are not actual discrepancies. They are auxiliary directories that are present in the upstream repository but stripped from the published crate tarball (or excluded by the crate's Cargo.toml include/exclude rules).

Sample:
syn at the repo root, https://github.com/dtolnay/syn/tree/2.0.117, has benches/, dev/, ci/, .github/ alongside the crate source. Comparing the published syn crate against its repo archive currently produces a source_repo_only list with dozens of entries, all noise.

source_repo_only should list only real differences between the repository and the published crate, not auxiliary directories.

Ngôn ngữ chính
Python
Star
223
Fork
214
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
13

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

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 aboutcode-org/scancode.io

Tất cả issue của aboutcode-org/scancode.io

Issue tương tự

Thêm issue về Python

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.