752 Commits (8392508e23d50f12212947d1749ec4c4c0353826)

Author SHA1 Message Date
Jordi Boggiano 8392508e23
Merge branch '2.0' 3 years ago
Jordi Boggiano 4a8e7daf56
Make sure that single files installed via file downloader get the executable bit set if they are a binary file, refs #9742 3 years ago
Jordi Boggiano b451bcb1ac
Fix issue extracting archives into paths that already exist, fixes composer/installers#479 3 years ago
Jordi Boggiano d0b399b788
Merge branch '2.0' 3 years ago
Jordi Boggiano 40800df6bd
Fix CS 3 years ago
Jordi Boggiano 52967c32cf
Remove unused var 3 years ago
Jordi Boggiano 48d02b479b
Fix output of PathDownloader during upgrades 3 years ago
Jordi Boggiano fd88b3d48d
Fix DownloaderInterface return types 3 years ago
Jordi Boggiano b3951b8804
Fix output of FileDownloader and related to avoid async issues 3 years ago
Jordi Boggiano 9809350753
Fix PathDownloader's remove implementation 3 years ago
Jordi Boggiano 67261e8d47
Make package removals async as well, refs #9618 3 years ago
Markus Staab a5fecc4720
Filesystem: added removeDirectoryAsync() and use it in ArchiveDownloader (#9618)
This turns half of the `rm -rf ...` executions during package installs async and therefore improves performance
3 years ago
Jordi Boggiano e3af4ee606
Include stdout as well as stderr if git stash/diff/.. fails, fixes #9720 3 years ago
Jordi Boggiano f37f3dab04
Fix abort of downloads and zip extraction to happen immediately, fixes #9390 3 years ago
Jordi Boggiano 8d94e25c2f
Minor fixes 3 years ago
Jordi Boggiano 6a869ede77
Fail early if git/hg/svn can not be found on the system, so that download can be retried from dist, fixes #9681 3 years ago
Markus Staab 8dfe45a026 GitDownloader: combine checkout + reset commands into a single process
use a single process instead of 3 to improve performance
3 years ago
Jordi Boggiano 7f85367113
Make sure an array is always returned 4 years ago
Wissem Riahi bdecb4711d Add all curl_getinfo into the response and exception for curl requests 4 years ago
Wissem Riahi 370e082b4a Add saving time duration for curl HTTP requests 4 years ago
Jordi Boggiano 1fb6b03e03
Fix a few edge cases in unpushed change handling 4 years ago
Jordi Boggiano f86b3ad0fe
Make sure all remotes are checked for unpushed changes, fixes #9486 4 years ago
Jordi Boggiano b7d770659b
CS fixes 4 years ago
Markus Staab e8ce5a3db6
Remove unnecessary overridden method
The method just called its parent without further logic
4 years ago
Jordi Boggiano c362d001f1
Fix regression handling installs with custom installers not passing a fully qualified path to downloaders, fixes #9431, fixes #9434 4 years ago
Michaël Jacobs 611a9f5dab Drop unused imports 4 years ago
Michaël Jacobs c35a8e77c7 Fix missing directory separator in FileDownloader 4 years ago
Jordi Boggiano bc9336946e
Trim trailing slash in path downloader to avoid symlink issues, and in FileDownloader::getLocalChanges as we append a string without slash, refs #9422 4 years ago
Jordi Boggiano 52faa3cdfb
Merge pull request #9388 from JasonStephensTAMU/remove-windows-junction
Remove Windows junctions first in PathDownloader
4 years ago
Jason Stephens f486da4578 Remove junctions first in PathDownloader
When removing a package from a Path repository, ensure Windows junctions
are handled first. This avoids a potential problem using realpath() when
comparing dist and install paths.

See https://bugs.php.net/bug.php?id=77639
4 years ago
Ondřej Mirtes 48b23b1607
Simplify code in FileDownloader.php 4 years ago
Jordi Boggiano 1bf2df19dd
Avoid cleaning up $path in downloaders if it is the CWD (create-project use case), refs #9396 4 years ago
Jordi Boggiano 6cb0aff417
Fix issue preventing cleanup of vendor dir when it is nested in the install path on Windows, fixes #9396 4 years ago
Chauncey McAskill 1bb87babe6 Fix availability of $urls in FileDownloader
Fixed:
- Ensure manipulations to the first element of $urls in the $download callback are available in $accept and $reject
4 years ago
Jordi Boggiano 24abd233ec
Merge branch 'master' into code-improvements 4 years ago
Jordi Boggiano a1b781a302
Merge pull request #9220 from ffraenz/pr
Composer 2: Adapt file download cache keys to changed processed URLs
4 years ago
Fränz Friederes 369c2ff552
Implement PR code style feedback 4 years ago
Jordi Boggiano 2a36c3a70a
Minor tweaks 4 years ago
Simon Berger 80a75e9959 Minor code improvements 4 years ago
Simon Berger a6475a7118 Removed unused variables, properties and parameters of private functions 4 years ago
Simon Berger 002fd39bc6 Removed passing of parameters with default value 4 years ago
Simon Berger cda6e8bea6 Removed unnecessary property initialization or declaration 4 years ago
Fränz Friederes a1a3e29f52
Fix using inside anonymous function 4 years ago
Fränz Friederes 57e1ce6cdb
Change the file download cache key with the processed URL, implement custom cache key 4 years ago
Jordi Boggiano 90332f1dbd
Add a readonly mode to the cache, fixes #9150 4 years ago
Stephan a16f32484b Downloader: add a max_file_size to prevent too big files to be downloaded 4 years ago
Jordi Boggiano c0eb9834fe
Merge pull request #9116 from ryanaslett/patch-1
Update PathDownloader.php
4 years ago
Jordi Boggiano 7649c8438d
Fix exception when using create-project in current directory, fixes #9073 4 years ago
Ryan Aslett c0309f22d7
Update PathDownloader.php
If a path repository points at a directory that is managed by composer installers, the path that gets set ends up being relative, and this check fails to see that the source is already present, and therefore removes it.

Since ->install is already using realpath around the $path argument, remove should as well.

For an example repository that demonstrates this bug See: https://github.com/ryanaslett/pathrepotestcase
4 years ago
Jordi Boggiano 7bcde1481d
Fix git downloader syntax for windows cmd when updating packages, fixes #9089 4 years ago