Flex: Repository type is not registered - v1.0.81

Created on 11 Jul 2018  路  9Comments  路  Source: symfony/flex

The latest release seems to break custom repositories feature in composer.json.

Step to reproduce:

Add this in your composer.json:

"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/0x46616c6b/monolog"
        }
    ],

Then run composer update.

Expected result: the update run properly

Actual result:

Loading composer repositories with package information                                                                                                                         Updating dependencies (including require-dev)         
Package operations: 74 installs, 0 updates, 0 removals
  - Installing symfony/flex (v1.0.81): Loading from cache
Plugin installation failed, rolling back
  - Removing symfony/flex (v1.0.81)


  [InvalidArgumentException]              
  Repository type is not registered: vcs  

The update works fine if I manually set symfony/flex to v1.0.80.

composer v1.6.5
PHP 7.2.7

Most helpful comment

I've just released 1.0.82 (which is the same as 1.0.80) as a hotfix.

All 9 comments

Same problem here. I just locked on v1.0.80 as well, and it worked fine.

Same here

Same problem here, except I'm getting this error with "type": "path"

Repository type is not registered: path

Same problem here. It will actually happen with any private repo "type". Seems that 1.0.81 is upping symfony/cache Minor version and looking at flex 1.0.81 actual code changes I see nothing that can cause this - might be the cache repo breaking it.

I've just released 1.0.82 (which is the same as 1.0.80) as a hotfix.

should be fixed with #384

+1

v1.0.83 is out with a fix, can you test and report?

@fabpot I've tested it. It is okay now. 馃檱

Was this page helpful?
0 / 5 - 0 ratings