Regenerate saved examples and test that compare() sets windowsOnly
まだ誰も着手していません。
評価
調査の方向性
Start with make examples and the diff command in the issue, which compares examples/shop output against examples/shop-1.21-to-1.24.txt; examples/real/cobra.txt needs the project cloned, per examples/README.md. For the test gap, read compare() and isWindowsOnly in plugin/scripts, then TestWindowsOnly, which sets WindowsOnly by hand. Done means the regenerated examples match, a test through compare() or tests/ fails when the assignment is removed, and the three polish points are settled.
索引モデルが issue の本文から書いたものです。
説明
Follow-up from #7. The Windows-only mark works; these are small cleanups.
-
Saved examples are out of date. To reproduce:
go run ./plugin/scripts --from 1.21 --to 1.24 examples/shop | diff examples/shop-1.21-to-1.24.txt -differs at lines 20 and 25, which lack(Windows only). Runmake examples.examples/real/cobra.txtlists the same settings, so update it too (it needs the project cloned, see examples/README.md). -
No test checks that
compare()sets the flag.TestWindowsOnlysetsWindowsOnly: trueby hand. To reproduce: deletec.WindowsOnly = isWindowsOnly(k)fromcompare()and rungo test -count=1 ./.... Both packages still pass, while the report loses the mark. Add a test throughcompare()ortests/asserting thatwinsymlinkgetswindowsOnly: trueand a non-win setting does not. Computing the mark from the name in one place, instead of storing it onChange, would also remove the chance of the two disagreeing. -
Output and JSON polish:
- The "No binary imports the package, so no effect" section prints
winsymlink (os) (Windows only), where the mark adds nothing. To reproduce: run the tool from 1.22 to 1.23 on a module whose only binary is an emptyfunc main() {}. windowsOnlyusesomitemptywhilegoCommandis always present, so the JSON key is absent for most changes. Decide whether to always emit it.- The field comment on
WindowsOnlysays "Linux services can skip", which does not hold for modules built for Windows. Reword it. - Windows-only settings still count as reaching binaries and still appear in the suggested go.mod pins. That is accurate for Windows builds, but consider saying in the report that Linux-only services can ignore those pins.
- 主要言語
- Go
- スター
- 0
- フォーク
- 3
- 平均マージ
- 6時間 20分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GillMacedo/godebugdiff のほかの issue
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Add a --only flag to filter by package対応中かも @snehaapratap が 4 日前に担当しました。 オープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
-
Read the go line from go.work in workspace mode対応中かも @ducnhan123-co が 4 日前に担当しました。 オープンgood first issue
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
GillMacedo/godebugdiff#4 · コメント 1 件 ·
-
good first issue
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
GillMacedo/godebugdiff の issue をすべて見る
似ている issue
-
csp-probe needs efqdn to probe CSP domains対応中かも @unknownhackerworld が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
projectdiscovery/httpx#2725 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
category:helper tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
LanternOps/breeze#11285 ·
メンテナーはふだん 1 日以内に返信
-
Query cache: a failed cache page read leaves the set request's read lock held, so the scan hangsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
turbot/steampipe-plugin-sdk#986 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100