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

Offen
#84 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
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
go, typescript
Bereich
ci-cd

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
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.