composer icon indicating copy to clipboard operation
composer copied to clipboard

allow path repository failing

Open shyim opened this issue 1 year ago • 2 comments

I have optional path repositories and when they don't exist I get:

0.078 In PathRepository.php line 163:
0.078                                                                                
0.078   The `url` supplied for the path (custom/plugins/*) repository does not exis  
0.078   t                                                                            
0.078       

What I would suggest having a optional flag, so when there is an error, skip it

{
            "type": "path",
            "url": "custom/plugins/*",
            "options": {
                "symlink": true,
                "optional": true
            }
        }

It's straightforward to integrate, looking for feedback before I make the PR :)

shyim avatar Oct 27 '24 15:10 shyim

Such a good thing for project templates. Always annoying to not have them at the start but end up setting these up anyways.

JoshuaBehrens avatar Oct 27 '24 16:10 JoshuaBehrens

Yeah that sounds reasonable to me if you like to send a PR.

Seldaek avatar Oct 27 '24 20:10 Seldaek