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

HAR: Poetry source name overwrites Python project metadata in build info

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

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

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

評価

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

調査の方向性

modules/har/pkg/har/pkgmgr_buildinfo.go の pythonProjectFields を読み、detectPythonRootPackage または pythonProjectFields の既存テストを確認してください。[tool.poetry] メタデータの後に [[tool.poetry.source]] が続くケースを再現し、プロジェクト名とバージョンが保持されることを示すリグレッションテストを追加してから、テストが通ることを確認してください。

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

説明

Problem

pythonProjectFields reads the last name and version assignments from any section. A later Poetry package-source section can overwrite the project name, producing incorrect RootPackage.Name and dependency parent keys in uploaded build info.

Reproduction

  1. In pyproject.toml, set [tool.poetry] to name = "my-app" and version = "1.2.3".
  2. Add a later [[tool.poetry.source]] section with name = "private-index" and url = "https://packages.example.com/simple/".
  3. Pass the file contents to pythonProjectFields, as detectPythonRootPackage does.

Actual: returns private-index, 1.2.3. Expected: returns my-app, 1.2.3.

Follow-up

Read metadata from the appropriate project section rather than unrelated sections, and add a regression test for a Poetry source declared after project metadata.

Context

Found in PR #288; original review finding. Implementation: pythonProjectFields.

主要言語
Go
スター
25
フォーク
13
平均マージ
2日 4時間
マージ済み PR(30日)
67

環境構築

はじめの一歩

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

harness/cli のほかの issue

harness/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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