Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Cloud. How to skip a native Cloud patch? #7605

@atwixfirster

Description

@atwixfirster

Topic clarification/correction request

Topic Link

Apply patches

Description

We have a topic about Cloud patches. However this topic does not contain an information how to skip a particular Cloud patch.

Possible solutions

Additional information

On our Cloud project we have removed Amazon payment modules via replace directive in a composer.json file:

"replace": {
        "amzn/amazon-pay-and-login-with-amazon-core-module": "*",
        "amzn/amazon-pay-module": "*",
        "amzn/amazon-pay-sdk-php": "*",
        "amzn/login-with-amazon-module": "*"
},

However, during deployment process Cloud returns a bunch of errors:

apply [--git-installation [GIT-INSTALLATION]]  
    W: 
    W: In Processor.php line 118:
    W:                                                                                
    W:   [12] The command "php ./vendor/bin/ece-patches apply" failed. In Applier.ph  
    W:   p line 140:                                                                  
    W:                                                                                
    W:                                                                                
    W:     The command "'git' 'apply' '--check' '--reverse' '/app/vendor/magento/mag  
    W:   en                                                                           
    W:     to-cloud-patches/patches/BUNDLE-2554__set_payment_info_bug_fix__3.4.1.pat  
    W:   ch                                                                           
    W:     '" failed.                                                                 
    W:                                                                                
    W:                                                                                
    W:                                                                                
    W:     Exit Code: 1(General error)    

Problem Cloud tries to patch a module which does not exist.

Do we have any docs how to disable a particular Cloud patch (in my case - app/vendor/magento/mageto-cloud-patches/patches/BUNDLE-2554__set_payment_info_bug_fix__3.4.1.patch) during deployment?

Thank you!

CC: @meker12

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions