Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Silent failures when POM files are missing or unresolvable

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
groovy, kotlin
領域
build-system

調査の方向性

OssLicensesPlugin.groovy から始め、POM 解決クエリと UnresolvedArtifactResult の処理を追跡します。次に LicensesTask.groovy:addLicensesFromPom() と addGooglePlayServiceLicenses() を読み、現在のエラーおよび警告の動作を比較します。Done では、解決できない POM または存在しない POM の処理を定義し、依存関係のライセンス出力が完全であることを検証する必要があります。

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

説明

Problem

When the plugin resolves POM files for license extraction, failures are silently swallowed:

  1. Network/resolution failures: createArtifactResolutionQuery() returns UnresolvedArtifactResult for POMs that can't be fetched. The plugin filters these out silently — the dependency just gets no license entry in the output.

  2. Missing POM files: addLicensesFromPom() logs an error (POM file $pomFile for $group:$name does not exist) but continues. The build succeeds with incomplete license data.

  3. No completeness validation: There's no check that every dependency in AGP's METADATA_LIBRARY_DEPENDENCIES_REPORT actually ended up with a license entry in the final output. Missing licenses are invisible to the user.

Impact

A build can produce third_party_licenses / third_party_license_metadata files that are silently missing license entries for some dependencies. This could be a compliance issue.

Considerations

  • Some POMs legitimately have no <licenses> block — should that be a warning vs. an error?
  • Should there be a strict mode (fail on missing) vs. lenient mode (warn only)?
  • Google Play Services artifacts bundle their own license data in the AAR, so missing POMs for those are less critical

Relevant code

  • OssLicensesPlugin.groovy — POM resolution query filters out UnresolvedArtifactResult silently
  • LicensesTask.groovy:addLicensesFromPom() — logs error but doesn't fail
  • LicensesTask.groovy:addGooglePlayServiceLicenses() — logs warn but doesn't fail
主要言語
Kotlin
スター
526
フォーク
170
平均マージ
1日 7時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

google/play-services-plugins のほかの issue

google/play-services-plugins の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

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

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