Support repositories with several go.mod modules

オープン
#80 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, typescript
領域
ci-cd, testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
0
フォーク
4
平均マージ
18時間 41分
マージ済み PR(30日)
48

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DiffCI/core のほかの issue

DiffCI/core の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。