Root composer.json requires dev-master found dev-main on Docker

Viewed 533

I create a local repository of type "path" in composer like this:

   {
     ...
     "whweb/core-bundle": "dev-master"
     ...
   }
   ... 
   "repositories": [{
    "type": "path",
    "url" : "../wh-web-lib/whweb/core-bundle",
    "options": {
        "symlink": false
    }
    }]
    ...

when I run composer install or update on my local computer all ok (works) as soon as docker copies the project to a linux container, including the wh-web-lib folder, composer update or install fails with the following error:

Root composer.json requires whweb/core-bundle dev-master, found whweb/core-bundle[dev-main] but it does not match your constraint and is therefore not installable

Why is not working ? Is there a way to make it working equally well when it's on my local computer and when it runs on docker Linux container ?

1 Answers

might be solved with something like export COMPOSER_ROOT_VERSION=dev-master

Related