Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungRefreshed repository pull requests page generally available(22.09.2026 um 03:25 Uhr)
Sichere ProgrammierungThe Joy of Learning the Basics Again(22.09.2026 um 03:28 Uhr)
Sichere ProgrammierungZero-Code OpenTelemetry Tracing for Dagster(22.09.2026 um 03:39 Uhr)
Linux Tipps & Hardening`prime-all`(22.09.2026 um 02:28 Uhr)
IT Security Toolsopensoho v0.15.2(22.09.2026 um 03:33 Uhr)
IT Security NachrichtenUS Proposes AI Incident Alert System in Talks With China, Bessent Says(22.09.2026 um 04:01 Uhr)
Sichere ProgrammierungRefreshed repository pull requests page generally available(22.09.2026 um 03:25 Uhr)
Sichere ProgrammierungThe Joy of Learning the Basics Again(22.09.2026 um 03:28 Uhr)
Sichere ProgrammierungZero-Code OpenTelemetry Tracing for Dagster(22.09.2026 um 03:39 Uhr)
Linux Tipps & Hardening`prime-all`(22.09.2026 um 02:28 Uhr)
IT Security Toolsopensoho v0.15.2(22.09.2026 um 03:33 Uhr)
IT Security NachrichtenUS Proposes AI Incident Alert System in Talks With China, Bessent Says(22.09.2026 um 04:01 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Exploration: Composer Path Repositories for Local Drupal Module Dependencies

The Hook When one Drupal module depends on another, I want to iterate across both without publishing interim versions or wiring up a private Composer repo. Path repositories give me that speed while keeping dependency boundaries…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

The Hook

When one Drupal module depends on another, I want to iterate across both without publishing interim versions or wiring up a private Composer repo. Path repositories give me that speed while keeping dependency boundaries honest.





Why I Built It

I explored how Composer path repositories can simplify local Drupal module development when one module depends on another. The goal is to iterate across modules without publishing interim versions or wiring up a private Composer repo, while still mimicking production resolution.



The Solution

Why Path Repositories Work Well for Drupal

Drupal modules are Composer packages. If module-a requires module-b, you can point the consuming site to a local checkout of module-b during development, while keeping production on a tagged release. This keeps module boundaries clean and mirrors how dependency resolution will behave in production.



Minimal Setup (Composer Root)

Add a path repository entry in the project’s root composer.json:




{
"repositories": [
{
"type": "path",
"url": "../modules/module-b",
"options": {
"symlink": true
}
}
]
}






Then require the package as normal:




composer require vendor/module-b:@dev






With symlink: true, changes in module-b are immediately visible to the consuming project.



Module Composer.json (Dependency Side)

In module-a/composer.json, declare the dependency normally:




{
"require": {
"vendor/module-b": "^1.2"
}
}






During development, the path repository overrides that constraint with your local checkout. In production, Composer resolves to the tagged version from the main repo.



Workflow Notes




  • Keep package names and versions consistent across module repos so resolution behaves as expected.

  • Use @dev only in the root project, not in module repositories, to avoid leaking dev constraints into releases.

  • If you need to test multiple dependency branches, switch the local checkout and run composer update vendor/module-b to refresh the lock file.



Common Pitfalls




  • If module-b isn’t a valid Composer package (missing composer.json or name), the path repo won’t resolve.

  • If symlinks aren’t supported (some CI environments), set symlink: false or omit the option.

  • If you forget to remove the path repository before releasing the site, you can accidentally pin to a local path in composer.lock.



The Code

I built a small Drupal module dependency demo that shows the path repository setup end to end. You can clone it, run through the Composer workflow, and browse the key files here: View Code



What I Learned

Path repositories are a clean way to keep Drupal module dependencies modular while still enabling fast local iteration. They mirror production resolution closely, but only if you keep package metadata consistent and avoid dev constraints leaking into module releases.






References








Originally published at VictorStack AI Blog

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Exploration: Composer Path Repositories for Local Drupal Module Dependencies

Thematisch verwandte Begriffe: Exploration, Composer, Path, Repositories · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-49449 | Joplin is an open source note-taking and to-do application that organise…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick