Support repositories with several go.mod modules

Aperta
#80 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, typescript
Ambito
ci-cd, testing

Direzione di ricerca

Start with tracking issue #76 and the related go.work issue, then locate the Go module analysis and fixture tests. Check how go list results and module-to-file assignment are handled, and coordinate on the tracking issue as requested. Done when a fixture with a root module and tools/go.mod selects only tools tests for changes in tools/, without a go.scope setting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

adapter enhancement help wanted

Part of #76.

A repository with a root go.mod plus nested modules (for example tools/go.mod or examples/go.mod) falls back unless it sets "go": { "scope": "root-module" }. Even then, changes inside the nested modules always fall back:

Changes in a Go module outside the declared root-module scope require full validation

Proposal

  • Analyse every module in the repository, not just the root: run go list from each go.mod directory and merge the results.
  • A nested module that requires another in-repo module by module path, with no local replace, uses the published version, so there's no edge. Only a local replace creates an edge (see the replace issue).
  • Keep go.scope: root-module as an opt-out for repositories that want the current behaviour.

Must fall back (blocker)

  • Any module whose go list fails, or whose files can't be assigned to exactly one module.

Done when

  • A fixture with a root module and tools/go.mod shows that a change in tools/ runs only tools tests, without any go.scope setting.

Shares most of its code with the go.work issue. Whoever picks up either one, coordinate on the tracking issue.

Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
18h 41m
PR unite (30g)
48

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DiffCI/core

Tutte le issue di DiffCI/core

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.