license_tests: pip-license-checker v0.46.1 fails on PEP 639 packages
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 65/100
調査の方向性
.github/workflows/license_tests.yml から始めて、pilosus/action-pip-license-checker がどのように設定されているかを、バージョンと branch input を含めて確認します。action を v3 に更新し、push イベントでは github.head_ref の代わりに github.ref_name を使用すべきか評価します。workflow がサポートされている checker バージョンを使用し、pull request と push の両方で checkout の動作が機能すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
The shared license_tests.yml workflow is failing across repos (e.g. ovos-skill-laugh) with Error: Checker License sources not found for common, well-known packages:
click:8.3.1 Error Error: Checker License sources not found
idna:3.11 Error Error: Checker License sources not found
importlib_metadata:8.7.1 Error Error: Checker License sources not found
RapidFuzz:3.14.3 Error Error: Checker License sources not found
regex:2026.2.28 Error Error: Checker License sources not found
typing_extensions:4.15.0 Error Error: Checker License sources not found
urllib3:2.6.3 Error Error: Checker License sources not found
zipp:3.23.0 Error Error: Checker License sources not found
Root Cause
pilosus/action-pip-license-checker@v2 pins to pip-license-checker 0.46.1, which queries the PyPI JSON API for the old License metadata field. Many packages have migrated to PEP 639's License-Expression field. The checker doesn't understand this format, so it returns Error instead of the actual license string.
Since the workflow sets fail: 'Copyleft,Other,Error', every unresolved package fails the check.
Fix
Upgrade pilosus/action-pip-license-checker to v3 in .github/workflows/license_tests.yml. v3 adds support for the new PyPI metadata format.
Secondary Issue
The workflow passes branch: ${{ github.head_ref }} from calling repos. github.head_ref is only set on pull_request events — on push events it is empty, causing the checkout step to silently fall back to the commit SHA. This works by accident but is fragile. Consider defaulting to github.ref_name instead.
- 主要言語
- 言語のデータがありません
- スター
- 0
- フォーク
- 7
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
afk bug marionette-removal
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
valpinkman/duelyst#32 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Netcracker/qubership-test-pipelines#307 ·
メンテナーはふだん 2 日以内に返信
-
enhancement priority normal
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
nextcloud/context_agent#270 ·
メンテナーはふだん 1 日以内に返信