Closed ghost closed 8 years ago
The global repo config is not related to your project configuration. Global repos don't apply to the project configuration, thats the default behaviour of composer.
Hm. I'd read this
https://getcomposer.org/doc/03-cli.md#composer-home-config-json
You may put a config.json file into the location which COMPOSER_HOME points to.
Composer will merge this configuration with your project's composer.json when you
run the install and update commands.
This file allows you to set repositories and configuration for the user's projects.
In case global configuration matches local configuration, the local configuration in
the project's composer.json always wins.
to suggest setting
export COMPOSER_HOME="${HOME}/.composer"
is supposed to do the trick.
It apparently doesn't.
Perhaps I've misread, or, drupal8's project is for some reason insensitive to it.
Sounds like a composer bug, could you open a issue against composer directly?
Your schema is wrong. (Or just the filename ;-)) It should looks like a normal composer.json.
~/.composer/config.json:
{
"repositories": [
{
"type": "composer",
"url": "https://packagist.drupal-composer.org"
}
]
}
If I add packagist repo to global config
any subsequent package require fails
But if I add the repo locally
all packages install with no issue
Iiuc, global configs should be respected.
Is there additional config needed here? or is the use of global config broken?