Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

license_tests: pip-license-checker v0.46.1 fails on PEP 639 packages

Aperta Adatta ai principianti
#10 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
github-actions, python
Ambito
ci-cd

Direzione di ricerca

Inizia da .github/workflows/license_tests.yml e verifica come è configurato pilosus/action-pip-license-checker, inclusi la sua versione e l’input branch. Aggiorna l’action a v3 e valuta se github.ref_name debba sostituire github.head_ref per gli eventi push. Il lavoro è completato quando il workflow usa la versione supportata del checker e il comportamento di checkout funziona sia per le pull request sia per i push.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Nessun dato sulla lingua
Stelle
0
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.