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.
Arnout Boks d1ce9f6246 Fix defaultRepos fallback does not use auth config
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 Fix: Keep replaced packages for autoload dumping with --no-dev 6 years ago
Command Document --no-check-all better, fixes #7889 6 years ago
Config Fix setting of scripts from config command, refs #7225 7 years ago
Console MB to MiB 6 years ago
DependencyResolver Fixes from PHPStan (#7687) 6 years ago
Downloader Add output for metapackage installs/updates/.. fixes #7586 6 years ago
EventDispatcher Call a script recursively with extra parameters (#7720) 6 years ago
Exception Fix plugin bootstrapping to ignore SSL Exceptions, fixes #5388 8 years ago
IO Another MB to MiB 6 years ago
Installer Add output for metapackage installs/updates/.. fixes #7586 6 years ago
Json Make surrogate sequences in JSON work on PHP 5.3 6 years ago
Package Warn on invalid package name or require/provide/.., fixes #7874 6 years ago
Plugin Improvements 6 years ago
Question Fix for https://github.com/composer/composer/issues/5989 8 years ago
Repository Fix defaultRepos fallback does not use auth config 6 years ago
Script Fix docs, fixes #6136 8 years ago
SelfUpdate Add update channels support to self-update and diagnose, fixes #4960 9 years ago
Util add gitlab token auth for git clone 6 years ago
Cache.php prevent preg_replace() calls when cache is not enabled 6 years ago
Compiler.php Fix ini_get() for boolean values 6 years ago
Composer.php Allow accessing the ArchiveManager via the Composer object, fixes #6411 7 years ago
Config.php Read htaccess-protect as a bool 6 years ago
Factory.php Warn on invalid package name or require/provide/.., fixes #7874 6 years ago
Installer.php Installer: Initialize $nameMatchesRequiredPackage 6 years ago
XdebugHandler.php Fix bc 7 years ago