810 Commits (3cdca37e8588d262efbb3b589f8a68eea73738a2)

Author SHA1 Message Date
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
Jordi Boggiano 04381c70fe
Merge branch '1.10' 4 years ago
Michael Stucki 0278e7453d
Clean Git repos during discard 4 years ago
Jordi Boggiano 93d4cf6f91
Add --no-show-signature where git supports it, fixes #8966 4 years ago
Jordi Boggiano 83c64a9d19
Reuse operation formatting logic in downloaders 4 years ago
Jordi Boggiano aaef3ff5ff
Improve error reporting when unzip fails due to race condition in unhandled Promise, refs #8988 4 years ago
Jordi Boggiano d1fedc3bd6
Restore old behavior of wiping dir contents before installing, fixes #8988 4 years ago
Jordi Boggiano 09fc263d37
Fix status command bug 4 years ago
Jordi Boggiano 0d369c87bc
Merge pull request #8975 from ffraenz/pr
Composer 2: Allow plugins to override the URL before triggering the download
4 years ago
Jordi Boggiano aea074308c
Update batching to install plugin deps before the plugin (alone an own batch) 4 years ago
Jordi Boggiano 9c78eda7db
Fix FileDownloader::update impl to handle promises 4 years ago
Jordi Boggiano 87a0fc5506
Execute operations in batches to make sure plugins install in the expected order 4 years ago
Jordi Boggiano 3af617efe8
Parallelize zip extraction using async unzip processes 4 years ago
Jordi Boggiano d5286d0cb8
Add a way for FileDownloader subclasses to add paths to the cleanup stage 4 years ago
Jordi Boggiano da6c0635d2
Merge pull request #8980 from stucki/discard-using-git-clean
Discard changes is incomplete if Git project has additional folders
4 years ago
Fränz Friederes 5c13c97428
Implement type and context properties in PreFileDownloadEvent 4 years ago
Michael Stucki ae59047166 Clean Git repos during discard 4 years ago
Fränz Friederes 13bdf8553a
Add setProcessedUrl method to PreFileDownloadEvent 4 years ago
Jordi Boggiano a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks 4 years ago
Jordi Boggiano 90bd351b8b
Allow downgrades to go through even though the target dir for archive extraction exists 4 years ago
Jordi Boggiano 02059d96e7
Fail early if an archive extraction is going to fail at install/update stage to avoid leaving the vendor dir in a half up to date state 4 years ago
Jordi Boggiano 385655f02a
Mark temp files as such for clarity in case any gets left over 4 years ago
Ayesh Karunaratne aa20413990
Improve regex in \Composer\Downloader\SvnDownloader::getCommitLogs() by removing unnecessary greedy operator 4 years ago
Lucas D Hedding 2bf2e9fc60 fix failing tests 4 years ago
Lucas D Hedding 3e2163de5c #8809: expand context for post file download event 4 years ago
Jérôme Tamarelle bd34ff1328
Remove unused property $httpDownloader 4 years ago
Jordi Boggiano 44a4429978
Remove PEAR installer/downloader/repos/..., fixes #8778 4 years ago
Lucas Hedding 1883832ddc
Provides a post download event (#8655) 4 years ago
Jordi Boggiano 7d3f45cf04
Avoid errors in cleanup, fixes #8766, fixes #8764 4 years ago
Jordi Boggiano 096b507050
Merge branch '1.10' 4 years ago
Jordi Boggiano e121de35a3
Fix variable used for symlinking absolute paths, refs #8700 4 years ago
Markus Staab 6f6974df70
added phpdocs (#8754) 4 years ago
Jordi Boggiano 55f122008b
Make sure we avoid cleanup running more than once per package on VcsDownloader 4 years ago
Jordi Boggiano 9575c7623f
Update changelog, add upgrade guide 4 years ago
Adam Žurek 25cd2382cb
Raise phpstan level to 1 (#8027) 4 years ago
Jordi Boggiano 87757de6bc
Merge branch '2.0' 4 years ago
Jordi Boggiano 800491175b
Avoid failing cleanup when a package gets uninstalled 4 years ago
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 4 years ago
Jordi Boggiano 918768fc54
Make sure we get a temporary dir which is unique 4 years ago
Jordi Boggiano 73251691a0
Avoid emptying the directory before extracting an archive into it, check that it is empty instead 4 years ago
Jordi Boggiano 7e679656a4
Keep absolute path repos symlinks absolute, fixes #8700 4 years ago
Jordi Boggiano 8a83d5cc35
Fix create-project command 4 years ago
Jordi Boggiano 7e142b5d6b
Use Upgrading for package installs too 4 years ago
Jordi Boggiano 589abb06a3
PHPStan fixes 4 years ago
Jordi Boggiano 4e4304ae7d
Fix 4 years ago
Jordi Boggiano 0b4763e6c7
Make it clear which package the error is for when detecting uncommitted changes 4 years ago
Jordi Boggiano 1e68555e0a
Sanitize URLs in getRepoName and centralize the Url sanitization process 4 years ago
Jordi Boggiano 23359f2db6
Merge branch 'master' into 2.0 5 years ago
Tyson Andre 6827105a5b Fix nits on typos 5 years ago
Adam Žurek 406a28708f updated phpstan to 0.12 5 years ago
Jordi Boggiano f6b3f12107
Merge branch 'master' into 2.0 5 years ago
Sergii Bondarenko bb127aa3e7 Resolves #8461: [ZipDownloader] Print `unzip` exit code when the command is failed 5 years ago
Jordi Boggiano 99eb86c506
Avoid outputting "Loading ... from cache" in non-verbose installs 5 years ago
Jordi Boggiano f867c407c7
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 149250ab92
Remove credentials from git remotes in cache and vendor dirs
This only removes the credentials if they are managed by composer auth.json or equivalent, if the credentials were present in the package URL to begin with they might remain

Refs #8293
Fixes #3644
Closes #3608
5 years ago
Jordi Boggiano 607b487295
Fix missing use/undefined var 5 years ago
Jordi Boggiano 53d2ab2253
Split up steps on VCS downloaders to allow doing network operations before touching the filesystem on GitDownloader, fixes #7903 5 years ago
Jordi Boggiano 9ee345ed29
Make sure the directory exists and will not block installation later when downloading 5 years ago
Jordi Boggiano 6a7220fed8
Avoid wiping the whole target package if download of the new one fails, refs #7929 5 years ago
Jordi Boggiano 898ba6f869
Only empty dir before actually installing packages, fixes #7929 5 years ago
Jordi Boggiano f7c1b04a6c
Improve output when installing packages 5 years ago
Jordi Boggiano 1002fb12fc
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 872604ab36
Allow path repos to point to their own source dir as install target, resulting in noop, fixes #8254 5 years ago
Jordi Boggiano 6c4357a7ed
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 0261ce8092
Improve handling of non-standard ports for GitLab and GitHub installs, fixes #8173 5 years ago
Gabriel Caruso 8b5be1d08c
Remove explicts void returns 5 years ago
Jordi Boggiano 5f988a34a6
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano d3873a0565
Merge branch '1.8' 5 years ago
Matthew Brown 65903aacfd Fix type issues (#7996)
* Fix type issues found by Psalm
5 years ago
CZechBoY a062cd1a31
added phpstan on level 0 5 years ago
Jordi Boggiano 0fd74d1cc4
Fix PerforceDownloader, fixes #7979 5 years ago
Jordi Boggiano 9957807990
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 69745745b3
Merge branch '1.8' 5 years ago
johnstevenson 4cf069535f Improve safe junction logic 5 years ago
johnstevenson 6212eadcb0 Only use junctions if they can be safely removed 5 years ago
Jordi Boggiano 4517c00d40 Merge branch 'master' into 2.0 6 years ago
Jordi Boggiano 79af9d45af Merge branch '1.8' 6 years ago
Jordi Boggiano 98a15bc93c Add output for metapackage installs/updates/.. fixes #7586 6 years ago
Jordi Boggiano b89720b52a Merge branch 'master' into 2.0 6 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 6 years ago
Jordi Boggiano bb2f64c7bc Remove ability to override the entire HttpDownloader instance in PRE_FILE_DOWNLOAD events 6 years ago
Jordi Boggiano 549ccd8f79 Remote outputProgress concept from downloaders as it does not make sense when things happen in parallel, refs #7901 6 years ago
Jordi Boggiano 3dfcae99a9 Add parallel download capability to FileDownloader and derivatives 6 years ago
Jordi Boggiano 713bc4de1d Minor fixes and updated the rest of the code/tests to use HttpDownloader 6 years ago
Jordi Boggiano 56805ecafe Add HttpDownloader to wrap/replace RemoteFilesystem with a new curl multi implementation 6 years ago
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
6 years ago
Jérôme Tanghe a51563300c Warning about the UNIX permissions lost if unzip command is not installed.
Some packages provide (such as Symfony Panther or Dusk) executable files, but
as PHP's unzip extension does not handle UNIX permissions, those files will
lose their executable ones.
6 years ago
Jordi Boggiano 73f14c0c7c Fix output when loading zips from cache, fixes #7498 6 years ago
Jordi Boggiano 9bc578e24a Fix warning tag name, fixes #7494 6 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago
Jonas Renaudot 1a725d5e1f Add support for authentication with mercurial repositories. 6 years ago
Jordi Boggiano 837ad7c14e Merge branch '1.6' 6 years ago
Rasmus Schultz 5bae1913ab swap tests to prevent conflicting error-messages 6 years ago
Rasmus Schultz 07867724d0 add back the warning about missing unzip
display an error-message on non-Windows OS if unzip is unavailable, per #7383
6 years ago
Jordi Boggiano 0f373e3249 Fix issues introduced by #7191, fixes #7263 6 years ago
Jordi Boggiano c917865fe9 Fix handling of dev versions and consolidate logic, refs #7119 6 years ago
Jordi Boggiano 24ad6307a7 Merge remote-tracking branch 'austris-argalis/issue-7085' 6 years ago
Jordi Boggiano ea78712822 Merge branch '1.6' 6 years ago
Edwin Rodríguez 9dc6222288 Allow using fossil dependency in a fossil repository, fixes #7125, closes #7126 6 years ago
Jordi Boggiano a51911f295 Merge commit 'b1a78b60fe552bc6e7df09cb1c0154797fea6f64' 6 years ago
Jordi Boggiano b1a78b60fe Remove output while the changes are being collected 6 years ago
Jordi Boggiano 79d62cc51c Escape references properly when getting commit logs for verbose update 6 years ago
Markus Staab 71d058b97b refactored "svn --version" calls into a single place, closes #7152
this saves a lot of process-spawning as we re-use the result of a process started once.
6 years ago
Hector Prats 2413b55c60 LocalChanges for ArchiveFiles 6 years ago
austris argalis 8a5645ffda Wording: Downgrading instead of Updating #7085 6 years ago
Jordi Boggiano a29ad2bfd6 Add some more debugging info 7 years ago
Markus Staab e67a559db9 make sure "svn info" output is parsed in a x-platform way 7 years ago
Markus Staab 9bc83d698e Pass auth credentials to svn log while retrieving commit logs 7 years ago
Jordi Boggiano e6114b2ca7 Fix support for replacing dist refs in gitlab URLs and add support for gitlab/github enterprise too 7 years ago
Gabriel Caruso 7aad20cb30 [SvnDownloader] Improve plurals and singulars 7 years ago
Jordi Boggiano 50665aa18d Simplify check for current revision, refs #6684 7 years ago
Jordi Boggiano 93cd9d874b Merge remote-tracking branch 'RobberPhex/git-repo' 7 years ago
Jordi Boggiano 3e1b0c88d7 Merge branch '1.5' 7 years ago
Christian Mayer 512188d212 Filter macOS .DS_Store files when detecting github archives, fixes #6784, closes #6785 7 years ago
Robert Lu e768e297cd fetch tag,commit form local but not ref 7 years ago
Robert Lu 0ad985122d Don't fetch when ref already on local 7 years ago
Vladimir Reznichenko c8615358cb SCA with PHP Inspections (EA Extended) 7 years ago
Jordi Boggiano 8b61315b14 Normalize URL as symfony Filesystem::mirror does a straight str_replace on realUrl vs actual iteratee path without normalization and our aRchivableFilesFinder does normalize the path, refs #6667 7 years ago
Gawain Lynch b859bbcdcf Pass a VCS filtered iterator to mirror 7 years ago
AjiYakin 03c560ce05 Warn identical names w/ different capitalization for unzip
Warn about identical names with different capitalization on unzip archive
extract failure (Not a directory)

Issue #5938
7 years ago
Martin Hasoň 88ec172bd8 Fix CS 7 years ago
Jordi Boggiano c917c52f81 Message tweak, refs #6341 7 years ago
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
7 years ago
Jordi Boggiano eff9326b0d Fix BC break, fixes #6419 7 years ago
Jordi Boggiano 61511cfed6 Fix CS issues, refs #6159 7 years ago
Jordi Boggiano 0a337e7c75 Merge remote-tracking branch 'gza/fix_unzip_on_win_php56' 7 years ago
David Zuelke f20d40a33a fix #6244 7 years ago
Guillaume ZITTA f89e01d622 switch first / fallback order 7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Jordi Boggiano 260b85882f Merge remote-tracking branch 'dzuelke/installmsgs' into 1.3 7 years ago
Jordi Boggiano f85a4a2f51 Add notice about not trying to allow path symlinks into source dir, refs #5974, refs #6174 7 years ago
Guillaume ZITTA 2e8d715c2f fix bad visibility 7 years ago
Guillaume ZITTA 98b7bd68b4 fix docstring and useless return 7 years ago
Guillaume ZITTA 921ffe741f Cleaner fallback Algorithm 7 years ago
Guillaume ZITTA 211c874b93 split into 2 extract methods 7 years ago
Guillaume ZITTA 374ada6914 useless if, condition il already true 7 years ago
Pieter Frenssen 9020b7113c Fix invalid calculation on non-numeric string 8 years ago
David Zuelke 17d5f6d88a fix some install msg corner cases
mostly around updates; had to go back to a colon even for 'from cache'
8 years ago
David Zuelke 2d36324e99 streamline install progress messages 8 years ago
Jordi Boggiano fcbc1044e0 Revert "Allow use of parent directories in PathDownloader when not mirroring the path" 8 years ago
Cameron Eagans 1cda8e1ef0 Allow use of parent directories in PathDownloader when not mirroring the path 8 years ago
Jordi Boggiano a1b468ea50 Fix git shortening, it is sunday.. 8 years ago
Jordi Boggiano 58b94b66e5 Shorten git hashes to 10chars to avoid long lines, refs #5946 8 years ago