You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a PSA, not an issue against this project. (Unless JSON specifies that sort order is undetermined?)
When applying patches from a dependency which is hosted on Gitlab's Composer package registry, patches supplied from the dependency (along with require and require-dev entries, and any other key-value JSON data) may be reordered unexpectedly.
This can cause patches to fail application if they are not applied in the order they were provided in the dependency's composer.json.
Gitlab's behaviour appears to be to sort patches by the length of the patch key, shortest first.
An external composer.patches.json is a reasonable workaround, although path considerations come into play if you're doing that from a required package.
1.x (which is based on the 1.x branch) still supports that. I don't plan on changing that. 2.x (which will eventually be tagged on main won't support it. Documentation is definitely on my radar :)
This is a PSA, not an issue against this project. (Unless JSON specifies that sort order is undetermined?)
When applying patches from a dependency which is hosted on Gitlab's Composer package registry, patches supplied from the dependency (along with require and require-dev entries, and any other key-value JSON data) may be reordered unexpectedly.
This can cause patches to fail application if they are not applied in the order they were provided in the dependency's
composer.json
.Gitlab's behaviour appears to be to sort patches by the length of the patch key, shortest first.
An external
composer.patches.json
is a reasonable workaround, although path considerations come into play if you're doing that from a required package.See https://gitlab.com/gitlab-org/gitlab/-/issues/364606 for the issue against Gitlab.
The text was updated successfully, but these errors were encountered: