You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
d1ce9f6246
When a full 'composer' cannot be constructed (because there is no local composer.json and no global composer.json), some commands (e.g. `show -a`) fall back to the default repositories from the `$COMPOSER_HOME/config.json` file. Without this fix, any auth configuration from `$COMPOSER_HOME/auth.json` is not used for these repositories in such a fallback scenario. Steps to reproduce: * Configure a password-protected composer repository in `$COMPOSER_HOME/config.json`. * Configure valid credentials for that repository in `$COMPOSER_HOME/auth.json`. * Make sure there is no file `$COMPOSER_HOME/composer.json`. * Ensure the current working directory has no `composer.json`. * Run `composer show -a some/package`. Expected: Information about `some/package` is shown without needing to enter credentials. Actual: A prompt "Authentication required" is shown for the private repository. When running the same command in a dir that has a `composer.json`, or when `$COMPOSER_HOME/composer.json` exists, things work as expected. |
6 years ago | |
---|---|---|
.. | ||
Autoload | 6 years ago | |
Command | 6 years ago | |
Config | 7 years ago | |
Console | 6 years ago | |
DependencyResolver | 6 years ago | |
Downloader | 6 years ago | |
EventDispatcher | 6 years ago | |
Exception | 8 years ago | |
IO | 6 years ago | |
Installer | 6 years ago | |
Json | 6 years ago | |
Package | 6 years ago | |
Plugin | 6 years ago | |
Question | 8 years ago | |
Repository | 6 years ago | |
Script | 8 years ago | |
SelfUpdate | 9 years ago | |
Util | 6 years ago | |
Cache.php | 6 years ago | |
Compiler.php | 6 years ago | |
Composer.php | 7 years ago | |
Config.php | 6 years ago | |
Factory.php | 6 years ago | |
Installer.php | 6 years ago | |
XdebugHandler.php | 7 years ago |