Scope go:generate, cgo, assembly and plugin fallbacks to the affected package

Đang mở
#78 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
55/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, typescript
Lĩnh vực
tooling

Hướng nghiên cứu

Start in src/repo/adapters/go.ts at analyzeGoMetadata, then read AdapterContribution in src/repo/adapters/types.ts and the vue.ts usage of subjectBlockers / fileBlockers. Trace how the current global blockers list forces fallback, and identify the existing fixture setup for adapter tests. Done when fixtures prove a change in package a stays selective when unrelated package b has //go:generate or cgo files, while a change in b or its dependents still falls back; //go:linkname remains global.

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

Mô tả

adapter enhancement help wanted

Part of #76.

analyzeGoMetadata in src/repo/adapters/go.ts pushes these to the global blockers list:

  • Go <pkg>: cgo dependencies require full validation
  • Go <pkg>: native assembly/object dependencies require full validation
  • Go <pkg>: runtime plugins require full validation
  • Go <file>: generated or linked dependencies require full validation

A global blocker makes every change fall back, so one //go:generate stringer or mockgen line anywhere disables selection for the whole repository. Most medium-sized Go repositories have at least one.

Proposal

  • Report these through subjectBlockers / fileBlockers (see AdapterContribution in src/repo/adapters/types.ts and how vue.ts uses them). Changes that can't reach the package then stay selective.
  • //go:generate: the generated output is usually committed, so go list already sees it as a normal source. Fall back only when the file with the directive, or the generator's inputs, change.
  • //go:linkname: keep a global blocker. It can reach into any package, so scoping isn't safe.

Must fall back (blocker)

  • A change to a package with cgo/assembly/plugin, or to anything that reaches it.
  • Any //go:linkname use (still global).

Done when

  • Fixtures show that a change in package a stays selective when unrelated package b has a //go:generate line or cgo files, and that a change in b (or a package b imports) still falls back.
Ngôn ngữ chính
TypeScript
Star
0
Fork
4
Merge trung bình
18 giờ 41 phút
Pull request đã merge (30 ngày)
48

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 DiffCI/core

Tất cả issue của DiffCI/core

Issue tương tự

Thêm issue về TypeScript

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.