Enhancement: link Go modules in the same repository through `go.work` and local `replace` paths
Maintainer thường phản hồi trong vòng 1 ngà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
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- go, typescript
Hướng nghiên cứu
Read src/core-open/scanners/go-scanner.ts and the existing Maven and npm workspace reference handling. Start by tracing how local replace paths are parsed and matched to scanned Go projects; the issue names no test file, so locate the Go scanner fixtures and tests. Done means local replacements create sorted, deduplicated project references, remote replacements do not, and the stated cases are covered; linked pull request #671 is already open.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
The Go scanner in src/core-open/scanners/go-scanner.ts returns one project per go.mod but never sets projectReferences. Maven modules (<modules>) and npm workspaces already get those edges, so the architecture and graph views can show how projects in a monorepo depend on each other. Go monorepos currently look like a set of unrelated modules.
Go has two clear signals for local module links:
- a
go.workfile at the root withuse ./svc/api/use ( ... )entries - a
replace example.com/lib => ../libdirective whose target is a local path (the scanner already detects these and skips the proxy lookup for them)
What to do
- For each local-path
replace, add aprojectReferencesentry pointing at the replaced module's directory (relative to the scan root), when that directory is one of the scanned Go projects. - Optionally read a root
go.workand, for eachusemodule that a project requires by module path, add the same kind of reference. - Use
refType: 'project'(or the closest existing type) and keep the list sorted and de-duplicated. - Add a fixture with two modules linked by a local
replaceand ago.work.
Acceptance
- A module with
replace example.com/lib => ../libhas a project reference to../lib - Remote replaces do not create references
- Modules without local links have no
projectReferences - Tests cover the
replacecase (andgo.workif implemented)
- Ngôn ngữ chính
- TypeScript
- Star
- 4
- Fork
- 3
- Merge trung bình
- 1 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 76
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của vibgrate/cli
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
area: documentation status: in progress type: documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
Oddmash/oddmash-ui#222 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
appium/appium-wincore-driver#169 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
india-ultimate/hub#715 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation Entwickler
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 89/100
Maintainer thường phản hồi trong vòng 1 ngày