loadsys / loadsys/CakePHP-ConfigReadShell

Probably don't need `composer/installers` under composer v2?

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

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

主要言語
PHP
スター
3
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

Seems like this might be the cause of `composer install` creating a `/Plugin` root folder and installing every package that [has a `type: cakephp-plugin` in their own `composer.json`](https://github.com/loadsys/CakePHP-ConfigReadShell/blob/7a4a69d0f65c3ba70f8eccb0c768becacf32dd6a/composer.json#L4) into that (tracked) folder.

It's not clear to me how to detect whether this plugin is being `composer install`ed via composer v1 or v2, but on the `master / 4.x` branch it's probably safe to [remove `composer/installers` from the `composer.json` file](https://github.com/loadsys/CakePHP-ConfigReadShell/blob/7a4a69d0f65c3ba70f8eccb0c768becacf32dd6a/composer.json#L25) in THIS project.

The issue is fixed when a different project that runs `composer require loadsys/cakephp-config-read:~4.0` should NOT end up with a root `Plugin/` folder when running `composer install`.

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

調査の方向性

composer.json、特に参照されている行付近の composer/installers エントリから始め、loadsys/cakephp-config-read:~4.0 を必要とする別のプロジェクトからのインストールを再現します。その依存関係が master/4.x のセットアップには不要であることを確認し、その後 composer install によってルートに Plugin/ フォルダーが作成されなくなり、そこに cakephp-plugin パッケージがインストールされなくなったことを確認します。

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

評価

技術スタック
php
領域
build-system
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

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

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