Support go.work workspaces

Offen
#79 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
30/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
go, typescript
Bereich
build-system

Rechercherichtung

Start with the Go adapter, where go list is run with GOWORK=off and where the single-root go.mod fallback message is raised, and with the test command that does the same. The issue asks for a fixture with go.work and two modules, where b imports a, to show that a change in a selects tests in both modules while a change in b selects only b. Done means that fixture passes and the fallback still triggers for go.work edits and for use or replace paths outside the repository.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

adapter enhancement help wanted

Part of #76.

Any repository with a go.work file falls back today:

Go support requires one root go.mod; workspaces and nested modules require full validation

The adapter runs go list with GOWORK=off, and the test command does the same.

Proposal

  • When go.work exists and every use directory is inside the repository, run go list -deps -test -json for each workspace module (or once with GOWORK on, if offline listing stays reliable) and merge the packages into one graph. Cross-module imports between workspace modules become normal package edges.
  • Map each test file to its module and package, and run go test from the right module directory, with one command group per module if needed.

Must fall back (blocker)

  • A use directory outside the repository, a replace in go.work pointing outside it, or go list failing for any module.
  • Changes to go.work or go.work.sum (already a full run through the configuration-change rule).

Done when

  • A fixture with go.work and two modules, where b imports a, shows that a change in a selects tests in both modules and a change in b selects only b.
Vorherrschende Sprache
TypeScript
Sterne
0
Forks
4
Ø Merge
18 Std. 41 Min.
Gemergte PRs (30 T.)
48

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus DiffCI/core

Alle Issues in DiffCI/core

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.