Support export and import of npm repositories

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

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

@vycius がすでに取り組んでいます。

2026年10月10日 から。

  • #440 @vycius による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

Work is already in progress: pull request #440 is open against this issue, so check it before starting anything new. The issue points to a missing modelresource.py with an IMPORT_ORDER list, modeled on pulp_file and pulp_python, and the failure is a missing export resource for the Package content type. Done means exporting and importing a repository with npm packages round-trips between two instances.

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

説明

Issue Triage-Needed

Version
pulpcore 3.121.3, pulp_npm 0.10.1 (latest release), installed from PyPI. Also reproduced on current main.

Describe the bug
pulp_npm does not implement the pulpcore import/export resources, so npm repositories cannot be moved between Pulp instances with PulpExporter / PulpImporter. Exporting a repository version that holds npm packages fails because there is no resource registered for the Package content type.

To Reproduce

  1. Sync an npm repository with an immediate remote.
  2. Create a PulpExporter for it and start an export.
  3. Try to import the resulting archive on another instance with a PulpImporter.

Expected behavior
npm packages and repositories are exported and imported like other plugins (pulp_file, pulp_python) handle their content.

Additional context
Other pulp plugins expose this through a modelresource.py with an IMPORT_ORDER list. The same approach works for pulp_npm.

主要言語
Python
スター
15
フォーク
27
平均マージ
22時間 44分
マージ済み PR(30日)
8

環境構築

はじめの一歩

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

pulp/pulp_npm のほかの issue

pulp/pulp_npm の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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