shutil.make_archive (xxx, tar, root_dir) is adding './' entry to archive which is wrong

オープン
#80,145 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

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

調査の方向性

添付された tarfile_test.tar を使ってアーカイブの内容を再現し、その後、tar と root_dir の処理を含めて shutil.make_archive を調査します。生成されたアーカイブに不要な './' エントリが含まれなくなれば完了です。既存のリンクされた PR についても、以前の作業を確認するためにレビューする必要があります。

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

説明

3.11 3.12 stdlib type-bug
BPO 35964
Nosy @Yhg1s, @tarekziade, @SpecLad, @serhiy-storchaka, @websurfer5
PRs
  • python/cpython#13738
  • Files
  • tarfile_test.tar: reproduce the problem
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2019-02-11.12:40:46.518>
    labels = ['3.7', 'library']
    title = "shutil.make_archive (xxx, tar, root_dir) is adding './' entry to archive which is wrong"
    updated_at = <Date 2019-08-27.20:46:19.371>
    user = 'https://bugs.python.org/HFM'
    

    bugs.python.org fields:

    activity = <Date 2019-08-27.20:46:19.371>
    actor = 'SpecLad'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2019-02-11.12:40:46.518>
    creator = 'HFM'
    dependencies = []
    files = ['48132']
    hgrepos = []
    issue_num = 35964
    keywords = ['patch']
    message_count = 2.0
    messages = ['335211', '344254']
    nosy_count = 10.0
    nosy_names = ['twouters', 'alanmcintyre', 'bialix', 'tarek', 'python-dev', 'SpecLad', 'serhiy.storchaka', 'HFM', 'Oskar Persson', 'Jeffrey.Kintscher']
    pr_nums = ['13738']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue35964'
    versions = ['Python 2.7', 'Python 3.6', 'Python 3.7']
    

    Linked PRs
    • gh-118152
    主要言語
    Python
    スター
    77.2k
    フォーク
    36k
    平均マージ
    1日 9時間
    マージ済み PR(30日)
    558

    コントリビューションガイド

    コントリビューションガイドを開く

    はじめの一歩

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

    python/cpython のほかの issue

    python/cpython の issue をすべて見る

    似ている issue

    Python の issue をもっと見る

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

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