Select importers when go.mod / go.sum dependencies change

Đang mở
#84 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ính năng
Độ 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
ci-cd

Hướng nghiên cứu

Start by reading #76 and the existing lockfile narrowing for yarn.lock/package-lock.json (#66), since this issue mirrors it for Go. The work lives where the Go adapter produces changed-package evidence: diff base/head go.mod require versions and go.sum, then use go list -deps Module.Path data to map local packages to external modules. Implement all listed fallbacks, and add the fixture where a imports github.com/x/y and b does not; done when bumping y selects only a and a replace change still falls back.

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.

Any change to go.mod or go.sum falls back today (Language/framework configuration changed: go.mod). So does every Dependabot or Renovate bump. The JS side already narrows a lockfile change to the dependencies that changed (see yarn.lock/package-lock.json handling and #66), and Go can do the same.

Proposal

  • Diff the base and head go.mod (require versions only) and go.sum. When only the versions of some modules changed, select the local packages whose go list -deps closure includes a package from those modules.
  • The go list output already lists each dependency package's Module.Path, so the adapter needs to record, for each local package, which external modules it reaches.

Must fall back (blocker)

  • Any change to the go / toolchain line, replace, exclude, retract or godebug.
  • A changed module that go list can't resolve offline.
  • go.sum changes not explained by the go.mod diff.

Done when

  • A fixture where a imports github.com/x/y and b doesn't shows that bumping y selects only a, and adding a replace 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.