Enhancement: link Go modules in the same repository through `go.work` and local `replace` paths
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- go, typescript
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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)
- Lingua principale
- TypeScript
- Stelle
- 4
- Fork
- 3
- Merge medio
- 1g 22h
- PR unite (30g)
- 76
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di vibgrate/cli
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di vibgrate/cli
Issue simili
-
documentation Entwickler
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 89/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:frontend bug ci-test level:low priority:high
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
skytuhua-org/Gen-V1#2974 · 4 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
area: cli area: core priority: P3 type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
appandflow/stim#6736 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
naomiaro/waveform-playlist#973 ·
I maintainer di solito rispondono entro 1 giorno