vardot / varbase-patches
List of needed patches for Varbase used packages with Composer Patches.
Package info
github.com/Vardot/varbase-patches
Type:composer-plugin
pkg:composer/vardot/varbase-patches
Requires
- php: >=8.1
- composer-plugin-api: ^2.0
- composer/installers: ^2.0
- cweagans/composer-patches: ^1.7 || ^2.0
- oomphinc/composer-installers-extender: ^2.0
- vardot/drupal-core-patches: ^11.4 || ^12.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- 11.0.x-dev
- 11.0.65
- 11.0.64
- 11.0.63
- 11.0.62
- 11.0.61
- 11.0.60
- 11.0.59
- 11.0.58
- 11.0.57
- 11.0.56
- 11.0.55
- 11.0.54
- 11.0.53
- 11.0.52
- 11.0.51
- 11.0.50
- 11.0.49
- 11.0.48
- 11.0.47
- 11.0.46
- 11.0.45
- 11.0.44
- 11.0.43
- 11.0.42
- 11.0.41
- 11.0.40
- 11.0.39
- 11.0.38
- 11.0.37
- 11.0.36
- 11.0.35
- 11.0.34
- 11.0.33
- 11.0.32
- 11.0.31
- 11.0.30
- 11.0.29
- 11.0.28
- 11.0.27
- 11.0.26
- 11.0.25
- 11.0.24
- 11.0.23
- 11.0.22
- 11.0.21
- 11.0.20
- 11.0.19
- 11.0.18
- 11.0.17
- 11.0.16
- 11.0.15
- 11.0.14
- 11.0.13
- 11.0.12
- 11.0.11
- 11.0.10
- 11.0.9
- 11.0.8
- 11.0.7
- 11.0.6
- 11.0.5
- 11.0.4
- 11.0.3
- 11.0.2
- 11.0.1
- 11.0.0.0
- 10.1.x-dev
- 10.1.102
- 10.1.101
- 10.1.100
- 10.1.99
- 10.1.98
- 10.1.97
- 10.1.96
- 10.1.95
- 10.1.94
- 10.1.93
- 10.1.92
- 10.1.91
- 10.1.90
- 10.1.89
- 10.1.88
- 10.1.87
- 10.1.86
- 10.1.85
- 10.1.84
- 10.1.83
- 10.1.82
- 10.1.81
- 10.1.80
- 10.1.79
- 10.1.78
- 10.1.77
- 10.1.76
- 10.1.75
- 10.1.74
- 10.1.73
- 10.1.72
- 10.1.71
- 10.1.70
- 10.1.69
- 10.1.68
- 10.1.67
- 10.1.66
- 10.1.65
- 10.1.64
- 10.1.63
- 10.1.62
- 10.1.61
- 10.1.60
- 10.1.59
- 10.1.58
- 10.1.57
- 10.1.56
- 10.1.55
- 10.1.54
- 10.1.53
- 10.1.52
- 10.1.51
- 10.1.50
- 10.1.49
- 10.1.48
- 10.1.47
- 10.1.46
- 10.1.45
- 10.1.44
- 10.1.43
- 10.1.42
- 10.1.41
- 10.1.40
- 10.1.39
- 10.1.38
- 10.1.37
- 10.1.36
- 10.1.35
- 10.1.34
- 10.1.33
- 10.1.32
- 10.1.31
- 10.1.30
- 10.1.29
- 10.1.28
- 10.1.27
- 10.1.26
- 10.1.25
- 10.1.24
- 10.1.23
- 10.1.22
- 10.1.21
- 10.1.20
- 10.1.19
- 10.1.18
- 10.1.17
- 10.1.16
- 10.1.15
- 10.1.14
- 10.1.13
- 10.1.12
- 10.1.11
- 10.1.10
- 10.1.9
- 10.1.8
- 10.1.7
- 10.1.6
- 10.1.5
- 10.1.4
- 10.1.3
- 10.1.2
- 10.1.1
- 10.1.0.0
- 10.0.x-dev
- 10.0.148
- 10.0.147
- 10.0.146
- 10.0.145
- 10.0.144
- 10.0.143
- 10.0.142
- 10.0.141
- 10.0.140
- 10.0.139
- 10.0.138
- 10.0.137
- 10.0.136
- 10.0.135
- 10.0.134
- 10.0.133
- 10.0.132
- 10.0.131
- 10.0.130
- 10.0.129
- 10.0.128
- 10.0.127
- 10.0.126
- 10.0.125
- 10.0.124
- 10.0.123
- 10.0.122
- 10.0.121
- 10.0.120
- 10.0.119
- 10.0.118
- 10.0.117
- 10.0.116
- 10.0.115
- 10.0.114
- 10.0.113
- 10.0.112
- 10.0.111
- 10.0.110
- 10.0.109
- 10.0.108
- 10.0.107
- 10.0.106
- 10.0.105
- 10.0.104
- 10.0.103
- 10.0.102
- 10.0.101
- 10.0.100
- 10.0.99
- 10.0.98
- 10.0.97
- 10.0.96
- 10.0.95
- 10.0.94
- 10.0.93
- 10.0.92
- 10.0.91
- 10.0.90
- 10.0.89
- 10.0.88
- 10.0.87
- 10.0.86
- 10.0.85
- 10.0.84
- 10.0.83
- 10.0.82
- 10.0.81
- 10.0.80
- 10.0.79
- 10.0.78
- 10.0.77
- 10.0.76
- 10.0.75
- 10.0.74
- 10.0.73
- 10.0.72
- 10.0.71
- 10.0.70
- 10.0.69
- 10.0.68
- 10.0.67
- 10.0.66
- 10.0.65
- 10.0.64
- 10.0.63
- 10.0.62
- 10.0.61
- 10.0.60
- 10.0.59
- 10.0.58
- 10.0.57
- 10.0.56
- 10.0.55
- 10.0.54
- 10.0.53
- 10.0.52
- 10.0.51
- 10.0.50
- 10.0.49
- 10.0.48
- 10.0.47
- 10.0.46
- 10.0.45
- 10.0.44
- 10.0.43
- 10.0.42
- 10.0.41
- 10.0.40
- 10.0.39
- 10.0.38
- 10.0.37
- 10.0.36
- 10.0.35
- 10.0.34
- 10.0.33
- 10.0.32
- 10.0.31
- 10.0.30
- 10.0.29
- 10.0.28
- 10.0.27
- 10.0.26
- 10.0.25
- 10.0.24
- 10.0.23
- 10.0.22
- 10.0.21
- 10.0.20
- 10.0.19
- 10.0.18
- 10.0.17
- 10.0.16
- 10.0.15
- 10.0.14
- 10.0.13
- 10.0.12
- 10.0.11
- 10.0.10
- 10.0.9
- 10.0.8
- 10.0.7
- 10.0.6
- 10.0.5
- 10.0.4
- 10.0.3
- 10.0.2
- 10.0.1
- 10.0.0.0
- 9.2.x-dev
- 9.2.111
- 9.2.110
- 9.2.109
- 9.2.108
- 9.2.107
- 9.2.106
- 9.2.105
- 9.2.104
- 9.2.103
- 9.2.102
- 9.2.101
- 9.2.100
- 9.2.99
- 9.2.98
- 9.2.97
- 9.2.96
- 9.2.95
- 9.2.94
- 9.2.93
- 9.2.92
- 9.2.91
- 9.2.90
- 9.2.89
- 9.2.88
- 9.2.87
- 9.2.86
- 9.2.85
- 9.2.84
- 9.2.83
- 9.2.82
- 9.2.81
- 9.2.80
- 9.2.79
- 9.2.78
- 9.2.77
- 9.2.76
- 9.2.75
- 9.2.74
- 9.2.73
- 9.2.72
- 9.2.71
- 9.2.70
- 9.2.69
- 9.2.68
- 9.2.67
- 9.2.66
- 9.2.65
- 9.2.64
- 9.2.63
- 9.2.62
- 9.2.61
- 9.2.60
- 9.2.59
- 9.2.58
- 9.2.57
- 9.2.56
- 9.2.55
- 9.2.54
- 9.2.53
- 9.2.52
- 9.2.51
- 9.2.50
- 9.2.49
- 9.2.48
- 9.2.47
- 9.2.46
- 9.2.45
- 9.2.44
- 9.2.43
- 9.2.42
- 9.2.41
- 9.2.40
- 9.2.39
- 9.2.38
- 9.2.37
- 9.2.36
- 9.2.35
- 9.2.34
- 9.2.33
- 9.2.32
- 9.2.31
- 9.2.30
- 9.2.29
- 9.2.28
- 9.2.27
- 9.2.26
- 9.2.25
- 9.2.24
- 9.2.23
- 9.2.22
- 9.2.21
- 9.2.20
- 9.2.19
- 9.2.18
- 9.2.17
- 9.2.16
- 9.2.15
- 9.2.14
- 9.2.13
- 9.2.12
- 9.2.11
- 9.2.10
- 9.2.9
- 9.2.8
- 9.2.7
- 9.2.6
- 9.2.5
- 9.2.4
- 9.2.3
- 9.2.2
- 9.2.1
- 9.2.0.0
- 9.1.x-dev
- 9.1.94
- 9.1.93
- 9.1.92
- 9.1.91
- 9.1.90
- 9.1.89
- 9.1.88
- 9.1.87
- 9.1.86
- 9.1.85
- 9.1.84
- 9.1.83
- 9.1.82
- 9.1.81
- 9.1.80
- 9.1.79
- 9.1.78
- 9.1.77
- 9.1.76
- 9.1.75
- 9.1.74
- 9.1.73
- 9.1.72
- 9.1.71
- 9.1.70
- 9.1.69
- 9.1.68
- 9.1.67
- 9.1.66
- 9.1.65
- 9.1.64
- 9.1.63
- 9.1.62
- 9.1.61
- 9.1.60
- 9.1.59
- 9.1.58
- 9.1.57
- 9.1.56
- 9.1.55
- 9.1.54
- 9.1.53
- 9.1.52
- 9.1.51
- 9.1.50
- 9.1.49
- 9.1.48
- 9.1.47
- 9.1.46
- 9.1.45
- 9.1.44
- 9.1.43
- 9.1.42
- 9.1.41
- 9.1.40
- 9.1.39
- 9.1.38
- 9.1.37
- 9.1.36
- 9.1.35
- 9.1.34
- 9.1.33
- 9.1.32
- 9.1.31
- 9.1.30
- 9.1.29
- 9.1.28
- 9.1.27
- 9.1.26
- 9.1.25
- 9.1.24
- 9.1.23
- 9.1.22
- 9.1.21
- 9.1.20
- 9.1.19
- 9.1.18
- 9.1.17
- 9.1.16
- 9.1.15
- 9.1.14
- 9.1.13
- 9.1.12
- 9.1.11
- 9.1.10
- 9.1.9
- 9.1.8
- 9.1.7
- 9.1.6
- 9.1.5
- 9.1.4
- 9.1.3
- 9.1.2
- 9.1.1
- 9.1.0.0
- dev-no-patches
- dev-787-imagemagick-3543548-11.0.x
This package is auto-updated.
Last update: 2026-12-03 12:29:53 UTC
README
List of needed patches for Varbase used packages with Composer Patches.
The 11.0.x branch tests itself: it installs Drupal plus the modules it patches, asserts that Composer Patches applies all of them, and checks that every patch file still exists (tests/).
Composer plugin and curated patch list for Varbase. Built on top of cweagans/composer-patches v2 with three additions that v2 dropped or never had:
- Wildcard
ignore-dependency-patches(e.g.drupal/*). - Allowlist
allowed-dependency-patches— only listed packages contribute dependency-declared patches. Defaults to["vardot/varbase-patches"]. patches-ignorerestored from cweagans v1 — drop a specific URL declared by a given dependency.
Plus two Composer commands to convert remote merge-request URLs into local timestamped patch files (./patches/<package>--YYYY-MM-DD--<issue>--mr-<n>.patch).
Quick start
composer require vardot/varbase-patches:^11.0
{
"config": {
"allow-plugins": {
"cweagans/composer-patches": true,
"vardot/varbase-patches": true
}
},
"extra": {
"enable-patching": true,
"composer-exit-on-patch-failure": true,
"composer-patches": {
"allowed-dependency-patches": [
"vardot/varbase-patches",
"vardot/drupal-core-patches"
]
},
"patches": {}
}
}
composer install
Result: only patches declared by vardot/varbase-patches (and your project's own extra.patches) apply. Patches declared by other dependencies are skipped — no more aborted installs from stale third-party .patch URLs.
Versions
| Branch | Drupal core | Use with |
|---|---|---|
11.0.x |
^11.4 || ^12.0 |
Varbase ^11.0, Drupal 11.4 and later, Drupal 12 |
10.1.x |
~11.3.0 |
Varbase ~10.1.0 |
10.0.x |
~10.6.0 |
Varbase ~10.0.0 |
9.2.x |
~10.6.0 |
Varbase ~9.2.0 |
9.1.x |
~10.6.0 |
Varbase ~9.1.0 |
no-patches |
n/a | Plugin only, manage your own list |
The patches branch carries patch files only — do not require it.
Drupal Core Patches
Drupal core patches are managed in a dedicated package, vardot/drupal-core-patches, so Varbase can always track the latest Drupal core release while keeping core patches separate from contrib patches.
vardot/varbase-patches requires vardot/drupal-core-patches. The core-patches package stores the curated Drupal core patches with one git branch per Drupal core major.minor (10.4.x, 10.5.x, 10.6.x, 11.1.x, 11.2.x, 11.3.x, 11.4.x, 11.5.x, 12.0.x), plus a flat patches branch that holds the actual .patch files. Each drupal-core-patches release requires drupal/core ~<minor>.0, so Composer automatically selects the patch set that matches the Drupal core version installed in your project. On this branch that is the 11.4.x, 11.5.x or 12.0.x line.
On this branch vardot/varbase-patches requires:
{
"require": {
"vardot/drupal-core-patches": "^11.4 || ^12.0"
}
}
Note:
vardot/drupal-core-patchesis a metapackage — a storage for Drupal core patches — not a Composer plugin. The only Varbase patch plugin isvardot/varbase-patches. Listvardot/drupal-core-patchesonly underextra.composer-patches.allowed-dependency-patches, and never underconfig.allow-plugins.
Composer commands
The plugin registers two Composer commands to convert remote GitLab merge-request URLs in your patch lists into local timestamped .patch files under ./patches/. They replace the Drush commands previously shipped in varbase_core (see docs/migration-from-drush.md).
Clean up the root composer.json file
- Name:
varbase-patches:cleanup:patches - Aliases:
var-ccup - Description: Detects any merge request patches in the root
composer.jsonextra.patchesblock, downloads them to the local./patches/folder with a timestamped filename, and updates the rootcomposer.jsonto use the local patch file.
composer varbase-patches:cleanup:patches
or
composer var-ccup
Clean up the external patches-file JSON file
- Name:
varbase-patches:cleanup:patches-file - Aliases:
var-ccupf - Description: Detects any merge request patches in the JSON file referenced by
extra.patches-file, downloads them to the local./patches/folder with a timestamped filename, and rewrites the patches-file JSON to use the local patch file.
composer varbase-patches:cleanup:patches-file
or
composer var-ccupf
Handling Varbase Patches Ignoring
To exclude a specific patch declared by vardot/varbase-patches (e.g. when you want to replace it with an improved version, or skip it entirely), add a patches-ignore block to your root composer.json:
{
"extra": {
"patches-ignore": {
"vardot/varbase-patches": {
"drupal/recaptcha": {
"fix: #3588269 Make Drupal8Post::submit() compatible with parent":
"https://git.drupalcode.org/project/recaptcha/-/commit/68b0f86d1e930ed78f795a97a2fc207be35b3260.diff"
}
}
}
}
}
Schema: { "<source-pkg>": { "<target-pkg>": { "<description>": "<url>" } } }. Matching is done by URL — the description string is informational. A flat array of URLs ({ "<source-pkg>": { "<target-pkg>": ["<url>", ...] } }) is also accepted.
This is the v1-style patches-ignore from cweagans/composer-patches, restored by this plugin on top of v2.
Ignoring Drupal Core Patches
vardot/drupal-core-patches is an ordinary dependency that contributes patches through the dependency resolver, so the same patches-ignore block controls it — use vardot/drupal-core-patches as the source package and drupal/core as the target:
{
"extra": {
"patches-ignore": {
"vardot/drupal-core-patches": {
"drupal/core": {
"Issue #3606822: ContainerBuilder synthetic kernel on install": "https://git.drupalcode.org/project/drupal/-/merge_requests/16159.patch"
}
}
}
}
}
Matching is by URL string, the same as for vardot/varbase-patches.
Filename convention
[package name]--[Date]--[issue number]--[MR number].patch
Examples:
drupal-core--2026-05-10--3539178--mr-12890.patchctools--2026-05-10--3572317--mr-85.patchredirect--2026-05-10--2879648--mr-109.patch
Fresh builds: commit patches.lock.json
On a fresh, lock-less build (composer create-project, or the first
composer require/composer update of a project with no vendor/),
Composer installs plugins one at a time inside the same run.
cweagans/composer-patches activates first — it is a dependency of this
plugin — and resolves the patch collection at the first package event after
its own activation, before Varbase Patches has been installed. The
allow-list cannot run inside that one-shot bootstrap window:
-
Normally this is harmless: the collection is momentarily unfiltered, and Varbase Patches re-resolves and rewrites
patches.lock.jsonthrough the allow-list the moment its own package lands, later in the same run. -
It turns fatal when any third-party dependency in the tree declares a patch Composer cannot download — for example a repository-relative path like
patches/foo.patch, which only resolves inside that package's own repository.composer-patchesthen aborts the whole install while creatingpatches.lock.json, before the filter exists:The "patches/foo.patch" file could not be downloaded: Failed to open stream: No such file or directory
The fix is to commit patches.lock.json to the project template or site
repository — it is a lock file and belongs in version control next to
composer.lock. When it is present, composer-patches loads it instead of
resolving, nothing is downloaded during the window, and Varbase Patches
re-resolves and rewrites it through the allow-list once active. For a CI job
that cannot ship a committed lock, seed a stub before the first Composer
command:
[ -f patches.lock.json ] || echo '{"patches": {}}' > patches.lock.json
or install the plugin globally first (composer global require vardot/varbase-patches) so it is active from process start. Once the plugin
is loaded, the allow-list is enforced on every resolve and the lock file
self-heals — patches from packages outside allowed-dependency-patches
(default: vardot/varbase-patches and vardot/drupal-core-patches) never
reach patches.lock.json.
Documentation
External: https://docs.varbase.vardot.com/developers/varbase-patches
AI assistant context
This repository ships its own AI-assistant context so contributors get the same project conventions as core maintainers:
AGENTS.md— vendor-neutral entry point. Works with any AI coding assistant (Claude Code, Cursor, Codex, Aider, Continue.dev, Copilot Workspace, …).CLAUDE.md— Claude Code-specific entry point..claude/agents/varbase-patches.md— Claude sub-agent..claude/skills/composer-patches/SKILL.md,.claude/skills/patch-management/SKILL.md— Claude skills.
Requirements
- PHP
>=8.1 composer-plugin-api ^2.0cweagans/composer-patches ~2.0
License
GPL-2.0-or-later. See LICENSE.