polarathene
11207a9a2e
Fix: Check for null install directory earlier
...
Allows for failing fast when no install directory was provided to the command(uses package name instead).
5 years ago
polarathene
e5e8736383
Fix: Fail fast when the project directory is not empty
...
Avoid waiting until after `getBestCandidate()` has finished, as it can add notably delay on slow connections due to downloading megabytes of data. Only to fail if the install location is invalid.
5 years ago
Jordi Boggiano
6a7f8ac335
Merge branch '1.9'
5 years ago
Jordi Boggiano
af86ca1fb3
Output a hint that maybe you are not in the right directory, fixes #8404
5 years ago
Jordi Boggiano
050707ed0c
Fix output of dump-autoload command to avoid interfering with warnings, refs #8397
5 years ago
Armando Miani
82d939d7f7
Validate composer show with --tree and --path options set ( #8390 )
5 years ago
Jordi Boggiano
eea4098f98
Merge branch '1.9'
5 years ago
Jordi Boggiano
4fc6479837
Fix require command to allow working on network mounts, fixes #8231
5 years ago
Jordi Boggiano
78b8c365cd
Merge branch '1.9'
5 years ago
Jordi Boggiano
b311b2c077
Merge pull request #8375 from mathiasdonoso/feature/add-homepage-to-package-information-command
...
added package homepage information to the command 'show'
5 years ago
Jordi Boggiano
f2700bbd98
Merge pull request #8377 from TysonAndre/misc-nit
...
Fix misc phpdoc and strpos arg order nits for suggestions
5 years ago
Jordi Boggiano
d73cef3fb4
Avoid calling findPackage for non-platform packages
5 years ago
Cédric Anne
9c9ca87537
Fix composer outdated command on PHP 7.4; fixes #8346
5 years ago
Arnout Boks
7c5e5e3ede
Add option to disable the lock file
...
When the `lock` option is set to false, composer will not write a
`composer.lock` file to disk. This signals that the package is meant
to be developed with unlocked and always updated dependencies. At the
moment, both `install` and `update` are allowed to install the
dependencies for such a package. If #6822 is implemented, only `update`
should be used for packages without a lockfile.
https://github.com/composer/composer/issues/8354
5 years ago
Tyson Andre
4c8e41d9a9
Fix misc phpdoc and strpos arg order nits
...
https://www.php.net/strpos has the signature
`strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : int`
(The needle is usually the constant)
`strpos('/', $suggestion)` would only be `false` for `''` and `'/'`
So the existing check would just not suggest **anything** that was
already installed (from pecl, built-in, or composer).
The intent seems to be to not suggest non-vendored php packages
that were already installed. (b20cc22ebb
)
5 years ago
Mathías Donoso
07ec3bda3e
changed homepage information position
5 years ago
Mathías Donoso
14b3f09cf8
added package homepage information to the command 'show'
5 years ago
Alexander M. Turek
146aa4938f
Command::execute() should always return an integer.
5 years ago
Nikita Konstantinov
e3b6c67a44
Provide `--fixed` option for the `require` command, fixes #8303
5 years ago
Jordi Boggiano
5ddc40e93c
Load packages from the lock file for check-platform-reqs if no dependencies have been installed yet, fixes #8058
5 years ago
Jordi Boggiano
3f5e4f0399
Add support for defining a {"packagist.org":false} repo in composer init, fixes #8210
5 years ago
Jordi Boggiano
1a391b572c
Prevent require command from allowing a package to require itself, fixes #8247
5 years ago
Jordi Boggiano
33759d02c4
Fix require command to allow working on network mounts, fixes #8231
5 years ago
Jordi Boggiano
45591597f6
Clarify how check-platform-reqs works, fixes #8191
5 years ago
Jordi Boggiano
3d88108dea
Merge branch '1.8'
5 years ago
Jordi Boggiano
b4e5db1c70
Revert "Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET"
...
Revert "Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151"
This reverts commit e7eecc6901
.
This reverts commit faa7c5eea2
.
5 years ago
Jordi Boggiano
79a300eaac
Merge branch '1.8'
5 years ago
Jordi Boggiano
4afd50fec6
Merge pull request #8151 from naderman/self-update-target
...
Allow overriding self-update target file with env var COMPOSER_SELF_UPDATE_TARGET
5 years ago
Jordi Boggiano
fbb964888d
Merge branch '1.8'
5 years ago
Jordi Boggiano
659c72f9c8
Read classmap-authoritative and apcu-autoloader from project config when installing via create-project, fixes #8155
5 years ago
Nils Adermann
faa7c5eea2
Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET
...
Useful if Composer is provided on a read-only filesystems, to allow
self-update to work with a different destination
5 years ago
Jordi Boggiano
2b421a94cb
Merge branch '1.8'
5 years ago
Jordi Boggiano
17810b2621
Revert composer.json changes if update process throws, fixes #8062
5 years ago
Jordi Boggiano
522ea033a3
Merge branch '1.8'
5 years ago
Markus Staab
c876613d5c
Added "Read more at" links to all commands ( #8019 )
5 years ago
Jordi Boggiano
e3f68016ac
Merge branch '1.8'
5 years ago
Jordi Boggiano
d96d046209
Fix require of platform packages with --ignore-platform-reqs, fixes #8012
5 years ago
Jordi Boggiano
ff246e3e85
Merge branch '1.8'
5 years ago
Jordi Boggiano
94df554255
Make sure config command output is also output on --quiet so that warnings can be hidden, fixes #7963
5 years ago
Michael Telgmann
eee98018f7
Soften hard exit after revert of composer file
5 years ago
Jordi Boggiano
19ba2edd5c
Add warning/info msg when tweaking disable-tls setting to avoid confusion, fixes #7935
5 years ago
Jordi Boggiano
11bfe9970f
Merge pull request #7912 from kathyoungaligent/feature/no-api-config
...
Feature/no api config
5 years ago
Kath Young
fbb9d20c33
Adjusted config name to be more descriptive, added documentation
5 years ago
Jordi Boggiano
f1297b11bc
Merge branch '1.8'
5 years ago
Jordi Boggiano
abcde19022
Document --no-check-all better, fixes #7889
5 years ago
Jordi Boggiano
66a77ed210
Merge branch '1.8'
5 years ago
Jordi Boggiano
02ceb74151
Tweak --no-cache option to be available globally and to not break VCS drivers relying on it, refs #7880 , refs #6650
5 years ago
Jordi Boggiano
61bd9f83f1
Merge remote-tracking branch 'Dzhuneyt/6650-disable-cache-argument'
5 years ago
Jordi Boggiano
a9aaa25d4c
Fix compat with Symfony Process 4.2, fixes #7923
5 years ago
Kath Young
8b1f8a4629
Add no-api in the config as an acceptable config
6 years ago