Scope go:generate, cgo, assembly and plugin fallbacks to the affected package

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go, typescript
領域
tooling

調査の方向性

Start in src/repo/adapters/go.ts at analyzeGoMetadata, then read AdapterContribution in src/repo/adapters/types.ts and the vue.ts usage of subjectBlockers / fileBlockers. Trace how the current global blockers list forces fallback, and identify the existing fixture setup for adapter tests. Done when fixtures prove a change in package a stays selective when unrelated package b has //go:generate or cgo files, while a change in b or its dependents still falls back; //go:linkname remains global.

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

説明

adapter enhancement help wanted

Part of #76.

analyzeGoMetadata in src/repo/adapters/go.ts pushes these to the global blockers list:

  • Go <pkg>: cgo dependencies require full validation
  • Go <pkg>: native assembly/object dependencies require full validation
  • Go <pkg>: runtime plugins require full validation
  • Go <file>: generated or linked dependencies require full validation

A global blocker makes every change fall back, so one //go:generate stringer or mockgen line anywhere disables selection for the whole repository. Most medium-sized Go repositories have at least one.

Proposal

  • Report these through subjectBlockers / fileBlockers (see AdapterContribution in src/repo/adapters/types.ts and how vue.ts uses them). Changes that can't reach the package then stay selective.
  • //go:generate: the generated output is usually committed, so go list already sees it as a normal source. Fall back only when the file with the directive, or the generator's inputs, change.
  • //go:linkname: keep a global blocker. It can reach into any package, so scoping isn't safe.

Must fall back (blocker)

  • A change to a package with cgo/assembly/plugin, or to anything that reaches it.
  • Any //go:linkname use (still global).

Done when

  • Fixtures show that a change in package a stays selective when unrelated package b has a //go:generate line or cgo files, and that a change in b (or a package b imports) still falls back.
主要言語
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 を短くまとめたダイジェスト。