Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-patch applier / parameter configurations #93

Open
heldchen opened this issue Mar 9, 2022 · 0 comments
Open

Per-patch applier / parameter configurations #93

heldchen opened this issue Mar 9, 2022 · 0 comments

Comments

@heldchen
Copy link

heldchen commented Mar 9, 2022

I have one composer module that requires different applier settings (--binary) than the rest of the patches.

I tried several different configuration unsuccessfully:

    "extra": {
        "patches": {
            "vendor1/package1": {
                "a patch": "patches/vendor/vendor1/package1/patch1.patch"
            },
            "vendor2/package2": {
                "a patch": "patches/vendor/vendor2/package2/patch2.patch"
            },
            "vendor3/package3": {
                "a patch with special applier": "patches/vendor/vendor3/package3/patch3.patch",
                "_config": {
                    "patcher": {
                        "appliers": {
                            "PATCH": {
                                "check": {
                                    "default": "[[bin]] -t --verbose -p{{level}} --no-backup-if-mismatch --binary --dry-run < {{file}}"
                                },
                                "patch": {
                                    "default": "[[bin]] -t -p{{level}} --no-backup-if-mismatch --binary < {{file}}"
                                }
                            }
                        }
                    }
                }
            }
         }
    },
    "extra": {
        "patches": {
            "vendor1/package1": {
                "a patch": "patches/vendor/vendor1/package1/patch1.patch"
            },
            "vendor2/package2": {
                "a patch": "patches/vendor/vendor2/package2/patch2.patch"
            },
            "vendor3/package3": {
                "a patch with special applier": {
                    "source": "patches/vendor/vendor3/package3/patch3.patch",
                    "patcher": {
                        "appliers": {
                            "PATCH": {
                                "check": {
                                    "default": "[[bin]] -t --verbose -p{{level}} --no-backup-if-mismatch --binary --dry-run < {{file}}"
                                },
                                "patch": {
                                    "default": "[[bin]] -t -p{{level}} --no-backup-if-mismatch --binary < {{file}}"
                                }
                            }
                        }
                    }
                }
            }
         }
    },

Unfortunately none of them succeeded. Is this currently not possible to do on a per patch or module level?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant