Jordi Boggiano
2dbe66ad20
Fix deletion of corrupt 0-bytes zip archives from the cache, fixes #10580 ( #10666 )
2022-03-29 18:57:30 +02:00
megubyte
8b7e2b600d
phpstan: update tests/Composer/Test/Downloader/* to level 6 standard ( #10238 )
2021-10-30 10:21:50 +02:00
Jordi Boggiano
4c9e75c6e5
Fix CS
2021-06-03 10:38:38 +02:00
Jordi Boggiano
8bf0ddf905
Clean up ZipDownloader, always do async first if possible then fallback to non-async
2021-06-02 15:13:19 +02:00
Jordi Boggiano
4940009f83
Bump phpstan to level 3 ( #9734 )
...
Clean up PackageInterface/CompletePackageInterface, add missing methods, type things in solver as BasePackage, added CompleteAliasPackage, ..
2021-03-09 15:49:40 +01:00
Jordi Boggiano
1593b67230
Fix warnings on higher phpunit versions
2020-09-11 11:01:32 +02:00
Jordi Boggiano
ee58f25c00
Fix ZipDownloaderTest
2020-06-16 14:00:25 +02:00
Jordi Boggiano
3af617efe8
Parallelize zip extraction using async unzip processes
2020-06-16 14:00:20 +02:00
Jordi Boggiano
0dad963cd8
Add executeAsync to ProcessExecutor and allow Loop class to wait on it in addition to HttpDownloader
2020-06-16 14:00:19 +02:00
Jordi Boggiano
a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks
2020-06-04 16:08:23 +02:00
Jordi Boggiano
1b1d59ee6c
Make FileDownloader always download file first in vendor-dir/composer/$tmp instead of next to install path to avoid issues with custom installers not being loaded when downloading on first install, and use cleanup method properly
2020-03-28 20:38:50 +01:00
Jordi Boggiano
f6b3f12107
Merge branch 'master' into 2.0
2019-12-07 21:10:14 +01:00
Sergii Bondarenko
bb127aa3e7
Resolves #8461 : [ZipDownloader] Print `unzip` exit code when the command is failed
2019-12-03 15:30:08 +04:00
Jordi Boggiano
53d2ab2253
Split up steps on VCS downloaders to allow doing network operations before touching the filesystem on GitDownloader, fixes #7903
2019-08-29 11:37:23 +02:00
Gabriel Caruso
6c8ddd4d57
Remove unused private properties
2019-07-24 02:53:53 +02:00
CZechBoY
a062cd1a31
added phpstan on level 0
2019-02-18 13:05:14 +01:00
Jordi Boggiano
3dfcae99a9
Add parallel download capability to FileDownloader and derivatives
2019-01-18 08:39:03 +01:00
Jordi Boggiano
713bc4de1d
Minor fixes and updated the rest of the code/tests to use HttpDownloader
2019-01-14 17:29:23 +01:00
Gabriel Caruso
2a13bb2649
Fixes from PHPStan ( #7687 )
...
* fix docblocks
* remove redundant conditional
* fix wrong variable name
* fix wrong namespaces
* add missing private members
* remove unused/redundant arguments
* move testcase class
* exclude TestCase.php
* Tweak RuleWatchGraph type hints
* Tweak doc comment
2018-11-12 15:23:32 +01:00
Jordi Boggiano
066351c5b9
Remove use of deprecated getMock method
2018-04-12 10:24:56 +02:00
John Stevenson
02fbbd5a42
Skip MockedZipDownloader tests if zip is missing ( #6917 )
...
* Skip MockedZipDownloader tests if zip is missing
2017-12-19 11:07:09 +01:00
Martin Hasoň
88ec172bd8
Fix CS
2017-05-19 15:14:47 +02:00
Jordi Boggiano
c917c52f81
Message tweak, refs #6341
2017-05-16 22:45:47 +02:00
AjiYakin
8858b27ced
Warn identical names w/ different capitalization - extract zip archive
...
Warn about identical names with different capitalization on zip archive
extract failure (Not a directory)
Issue #5938
2017-05-16 22:43:04 +02:00
Jordi Boggiano
61511cfed6
Fix CS issues, refs #6159
2017-03-30 09:29:48 +02:00
Guillaume ZITTA
f89e01d622
switch first / fallback order
2017-03-14 23:43:48 +01:00
Guillaume ZITTA
abf06913a2
remove useless expect (already done by docstring)
2017-02-14 17:37:40 +01:00
Guillaume ZITTA
921ffe741f
Cleaner fallback Algorithm
2017-02-13 15:54:55 +01:00
Jordi Boggiano
1818b95149
CS fixes
2016-01-26 13:07:18 +00:00
Jordi Boggiano
783e0aec8a
Merge remote-tracking branch 'alcohol/unique-test-directories'
2016-01-26 12:35:29 +00:00
Rob Bast
adf3b956d0
try to use unique test directories
...
any tests that use the filesystem should have their own unique directory, as we run our test suite in parallel and
cleanup of tests (removing directories) should not interfere with currently running tests
2016-01-26 09:41:21 +01:00
Rob Bast
446f1b3e31
fix zip test
2016-01-21 10:22:12 +01:00
Jordi Boggiano
5d015defb8
Merge remote-tracking branch 'origin/master' into tls-config
2016-01-10 16:10:22 +00:00
Alexander Loutsenko
397ae2d7c8
review fixes
2015-12-14 18:50:04 +03:00
Alexander Loutsenko
fa5de786ff
clean garbage dirs in tmp after composer tests #4694
2015-12-14 17:52:37 +03:00
Padraic Brady
19e24c5804
Merge branch 'master' into tls-config
...
Conflicts:
.travis.yml
doc/03-cli.md
src/Composer/Command/ConfigCommand.php
src/Composer/Command/CreateProjectCommand.php
src/Composer/Command/DiagnoseCommand.php
src/Composer/Command/InstallCommand.php
src/Composer/Command/RequireCommand.php
src/Composer/Command/SelfUpdateCommand.php
src/Composer/Command/ShowCommand.php
src/Composer/Command/UpdateCommand.php
src/Composer/Config.php
src/Composer/Downloader/FileDownloader.php
src/Composer/Factory.php
src/Composer/Repository/ComposerRepository.php
src/Composer/Repository/PearRepository.php
src/Composer/Repository/Vcs/VcsDriver.php
src/Composer/Util/GitHub.php
src/Composer/Util/RemoteFilesystem.php
2015-01-29 20:31:56 +00:00
Jordi Boggiano
77163f66fc
Add support for mirrors in composer repos
2014-05-07 19:34:35 +02:00
Jordi Boggiano
32cd883daa
Rename options to transport-options, refs #2189
2014-05-07 18:25:28 +02:00
Pádraic Brady
306ba77e93
Implement the RemoteFilesystem Factory everywhere...
...
- also fixes impacted test
2014-03-01 17:01:44 +00:00
Luís Otávio Cobucci Oblonczyk
d4043b6b9a
Package options must be passed as argument to downloader
2013-08-19 04:38:25 -03:00
Jordi Boggiano
7912253df6
Retry downloading when a corrupt zip is found, fixes #2133 , fixes #2128 , fixes #2125
2013-07-31 20:33:20 +02:00
Jordi Boggiano
7f2b321044
Fix tests
2013-06-19 10:05:21 +02:00
Jordi Boggiano
39e69a3b12
Refactor OAuth acquisition code to generalize it
2012-10-21 17:56:57 +02:00
Grégoire Pineau
f4e9dd4fb8
Fixed PSR rules
2012-06-14 12:10:01 +02:00
Jordi Boggiano
beb4cbcd2b
Add test for ZipDownloader
2012-03-29 15:34:57 +02:00