Skip to content

Skip composer repositories without a url when checking for the path repository - #144

Open
SAY-5 wants to merge 1 commit into
InterNACHI:mainfrom
SAY-5:fix-repositories-without-url
Open

SAY-5 wants to merge 1 commit into
InterNACHI:mainfrom
SAY-5:fix-repositories-without-url

Conversation

@SAY-5

@SAY-5 SAY-5 commented Aug 16, 2026

Copy link
Copy Markdown

Composer allows repository entries that have no url, e.g. {"packagist.org": false} to disable packagist, so make:module currently dies with Undefined array key "url" when the app has one of those. This just skips such entries when looking for the existing path repository. Fixes #143

…epository

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
@doraemonxxx

doraemonxxx commented Nov 4, 2026 •

Copy link
Copy Markdown

This PR addresses a legitimate bug reported in #143. Composer allows valid repository entries without a url key, such as {"packagist.org": false} and the current implementation should handle these entries gracefully.

The fix is small, focused, and preserves the existing repository detection behavior while preventing the undefined array key error.

I think this is a good improvement and should be merged after CI passes. Thanks!

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

Successfully merging this pull request may close these issues.

Error with valid repositories entry with no url in composer.json

2 participants