gmoigneu / platformsh-mc-configuration

Other
0 stars 0 forks source link

Build error with 2.1.3 #1

Closed vkerkhoff closed 7 years ago

vkerkhoff commented 7 years ago

I'm trying to upgrade a 2.1.2 installation to 2.1.3 on platform, but during build I receive the error below. It looks like the MDVA-915 patch is no longer needed for this new version. How can we handle different versions of this repository with different versions of Magento?

The composer configuration is:

"require": {
        "magento/product-enterprise-edition": "2.1.3",
        "magento/magento-cloud-configuration": "dev-master",
        "composer/composer": "@alpha",
        "livechat/module-magento-livechat": "dev-master",
        "platformsh/magento2-configuration": "dev-master"
    },

Error:


      Executing build hook...
        error: patch failed: vendor/magento/module-catalog-import-export/Model/Import/Uploader.php:155
        error: vendor/magento/module-catalog-import-export/Model/Import/Uploader.php: patch does not apply
        PHP Fatal error:  Uncaught RuntimeException: Command git apply /app/vendor/magento/magento-cloud-configuration/patches/MDVA-915.patch returned code 1 in /app/vendor/magento/magento-cloud-configuration/src/Magento/MagentoCloud/Environment.php:68
        Stack trace:
        #0 /app/vendor/magento/magento-cloud-configuration/patch.php(17): Magento\MagentoCloud\Environment->execute('git apply /app/...')
        #1 {main}
          thrown in /app/vendor/magento/magento-cloud-configuration/src/Magento/MagentoCloud/Environment.php on line 68

          [RuntimeException]
          Command /usr/bin/php /app/vendor/magento/magento-cloud-configuration/src/Magento/MagentoCloud/../../../../../../vendor/magento/magento-cloud-configuration/patch.php returned code 255

        magento-cloud:build

        [2016-12-20 14:03:00] Start build.
        [2016-12-20 14:03:00] Applying magento-cloud-configuration patches.
        [2016-12-20 14:03:00] Command:/usr/bin/php /app/vendor/magento/magento-cloud-configuration/src/Magento/MagentoCloud/../../../../../../vendor/magento/magento-cloud-configuration/patch.php
        [2016-12-20 14:03:00] Status:255
        [2016-12-20 14:03:00] Output:array (

          0 => '[2016-12-20 14:03:00] Copying static.php to front-static.php',
          1 => '[2016-12-20 14:03:00] Command:git apply /app/vendor/magento/magento-cloud-configuration/patches/MDVA-915.patch',
          2 => '[2016-12-20 14:03:00] Status:1',
          3 => '[2016-12-20 14:03:00] Output:array (',
          4 => ')',
          5 => '',
          6 => 'Fatal error: Uncaught RuntimeException: Command git apply /app/vendor/magento/magento-cloud-configuration/patches/MDVA-915.patch returned code 1 in /app/vendor/magento/magento-cloud-configuration/src/Magento/MagentoCloud/Environment.php:68',
          7 => 'Stack trace:',
          8 => '#0 /app/vendor/magento/magento-cloud-configuration/patch.php(17): Magento\\MagentoCloud\\Environment->execute(\'git apply /app/...\')',
          9 => '#1 {main}',
          10 => '  thrown in /app/vendor/magento/magento-cloud-configuration/src/Magento/MagentoCloud/Environment.php on line 68',
        )

      E: Error building project: The build hook failed with status code 255. Aborted build.

    E: Error building the project: Unable to build project, aborting deployment.
gmoigneu commented 7 years ago

Fixed in 24c870b9aefc90177c1f01bf9f8b1a5a80f63f4c