jbutkowski/magento2-patches

此软件包的最新版本(dev-master)没有可用的许可证信息。

Magento2 核心补丁集合

dev-master 2018-05-09 14:31 UTC

This package is not auto-updated.

Last update: 2024-09-20 02:40:56 UTC


README

目前等待合并到 Magento 的核心修复集合。

有时你会遇到一个已修复但尚未分发的核心 Magento 错误,这可能会让人沮丧,你可能希望昨天就能得到修复,magento2-patches 收集这些补丁,并利用 vaimo/composer-patches 将它们应用到你的代码库中。

安装

composer require jbutkowski/magento2-patches:dev-master

添加补丁

前往你想要应用的 magento2 仓库中的 PR,将 .patch 添加到 URL 的末尾,GitHub 将为你生成一个补丁文件,将该文件放在 patches/Magento_ModuleName/magento2-issue-ISSUENUMBER.patch,然后在此仓库的 composer.json 文件中添加一个条目

"extra": {
    "patches": {
        "magento/module-name": {
            "Excellent description of the issue which people will see on composer install": {
                "source" : "patches/Magento_ModuleName/magento2-issue-ISSUENUMBER.patch",
                "version" : [
                    "MAGENTO-VERSION_NUMBER e.g. 100.2.*"
                ]
            }
        },

然后在 composer install 时,你会看到已应用的补丁

Processing patches configuration
  - Applying patches for magento/module-braintree (1)
    ~ space48/magento2-patches: patches/Magento_ModuleName/magento2-issue-ISSUENUMBER.patch [NEW]
      Excellent description of the issue which people will see on composer install

Writing patch info to install file