Go: richgo (a go test output wrapper) is not go test

オープン 初心者向け
#259 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

richgo test を拒否するチェックは ecosystems/go.py の179行目付近にあり、そこでは go test と gotestsum だけが受け付けられています。payload の --facts 出力では、argv の ["richgo", "test", ...] がすでにそのチェックに到達していることがわかります。まずその関数を読み、次に再現用のリポジトリでバリデーターを実行してください(Makefile に richgo test ./... を呼び出す richtest: ターゲットがあり、_test.go ファイルが1つあります)。そのリポジトリでテスト実行のチェックが通り、既存の Go テストがすべて引き続き通れば完了です。

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

説明

spf13/cobra runs every test job through richgo test ./...; tests-run WARNs "no CI configuration runs go test". richgo test is go test with coloured output.

Evidence from the corpus audit

spf13/cobra / tests-run
  • kind: FALSE_NEGATIVE
  • actual: WARN: tests found in 16 file(s), but no CI configuration runs go test
  • expected: PASS: every test job runs the tests through richgo, a go test output wrapper (richgo test = go test).
  • evidence: .github/workflows/test.yml:93 (and :130, Windows): - run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin/:$PATH make richtest; Makefile:26,28: richtest: install_deps / richgo test -v $(GO_TEST_FLAGS) ./...
  • evidence (validator): --facts shows "argv": ["richgo", "test", "-v", "$(GO_TEST_FLAGS)", "./..."] reached, but ecosystems/go.py:179 accepts only go test and gotestsum.
  • repro: Makefile target richtest: / \trichgo test ./..., workflow run: make richtest, one _test.go.
  • confidence: medium (richgo is a well-known wrapper, but not as common as gotestsum)

Found by the regression-corpus audit (235 real repositories, one or more per ecosystem profile; corpus and expected results in corpus/). Evidence is quoted from the audited checkouts at the commits pinned in corpus/projects.toml; <checkouts>/<owner>__<repo> is such a checkout.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

主要言語
Python
スター
4
フォーク
1
平均マージ
10時間 41分
マージ済み PR(30日)
79

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

cpp-best-practices/project_validator のほかの issue

cpp-best-practices/project_validator の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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