196 Commits (6a466a120a404d1c5d492e5ca715841c491517fc)

Author SHA1 Message Date
Jordi Boggiano 385655f02a
Mark temp files as such for clarity in case any gets left over 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
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
Adam Žurek 25cd2382cb
Raise phpstan level to 1 (#8027) 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 7e142b5d6b
Use Upgrading for package installs too 4 years ago
Adam Žurek 406a28708f updated phpstan to 0.12 5 years ago
Jordi Boggiano 99eb86c506
Avoid outputting "Loading ... from cache" in non-verbose installs 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 4517c00d40 Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 98a15bc93c Add output for metapackage installs/updates/.. fixes #7586 5 years ago
Jordi Boggiano bb2f64c7bc Remove ability to override the entire HttpDownloader instance in PRE_FILE_DOWNLOAD events 5 years ago
Jordi Boggiano 549ccd8f79 Remote outputProgress concept from downloaders as it does not make sense when things happen in parallel, refs #7901 5 years ago
Jordi Boggiano 3dfcae99a9 Add parallel download capability to FileDownloader and derivatives 5 years ago
Jordi Boggiano 713bc4de1d Minor fixes and updated the rest of the code/tests to use HttpDownloader 5 years ago
Jordi Boggiano 56805ecafe Add HttpDownloader to wrap/replace RemoteFilesystem with a new curl multi implementation 5 years ago
Jordi Boggiano 73f14c0c7c Fix output when loading zips from cache, fixes #7498 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 b1a78b60fe Remove output while the changes are being collected 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 e6114b2ca7 Fix support for replacing dist refs in gitlab URLs and add support for gitlab/github enterprise too 6 years ago
David Zuelke f20d40a33a fix #6244 7 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'
7 years ago
David Zuelke 2d36324e99 streamline install progress messages 7 years ago
Jordi Boggiano 4d082f77b8 Simplify composer output to take less lines 8 years ago
Niels Keurentjes f794ee7870 Fixes for implicit variable declarations, return type mismatches and invalid method declarations. 8 years ago
Jordi Boggiano 8808638ea9 Make sure cache clearing works easily in all cases 8 years ago
Jordi Boggiano 2378c9e308 Remove dead code 8 years ago
Jordi Boggiano 477da3a448 Fix clearCache in case of download failure 8 years ago
Jordi Boggiano 502c5431a2 Add hashing of the complete URL for cache entries of dist downloads for extra safety 8 years ago
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 8 years ago
Jordi Boggiano 5d015defb8 Merge remote-tracking branch 'origin/master' into tls-config 9 years ago
Jordi Boggiano ce08582671 Fix CS 9 years ago
Kunal Mehta f634c6946d Update callers of VersionParser::formatVersion()
Tests were moved to BasePackageTest.
9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
Jordi Boggiano 777f2e81a3 Show more info when a download fails 9 years ago
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
9 years ago
Jordi Boggiano 94926218e8 CS fixes 10 years ago
Garth Kerr dc90397d1e Add blank line to output for FileDownloader.
The VcsDownloader outputs a blank line between each dependency:

745dcbce33/src/Composer/Downloader/VcsDownloader.php (L80)

This write makes output consistent.
10 years ago
Jordi Boggiano 745dcbce33 Fix file deletions to always use a delayed retry on windows, fixes #3074 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Jordi Boggiano 71397f82e4 Remove forced dir removal before install, fixes #3035 10 years ago
Jordi Boggiano b6981d09e8 Fix handling of origin url in composer repository class 10 years ago
Jordi Boggiano ba776c06ee Add composer mirror class 10 years ago
Jordi Boggiano 9cbfe31983 Fix regression when using -vvv 10 years ago
Jordi Boggiano 77163f66fc Add support for mirrors in composer repos 10 years ago
Jordi Boggiano 32cd883daa Rename options to transport-options, refs #2189 10 years ago
Jordi Boggiano 016a016455 Merge remote-tracking branch 'lcobucci/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
10 years ago
Jordi Boggiano b437c1cc05 Support github auth directly in the RemoteFilesystem class 10 years ago
Pádraic Brady 306ba77e93 Implement the RemoteFilesystem Factory everywhere...
- also fixes impacted test
10 years ago
Jordi Boggiano 81994f6b90 Re-download files when the cached copy is invalid, fixes #1496 11 years ago
Luís Otávio Cobucci Oblonczyk 0f2c0ab389 Merge remote-tracking branch 'upstream/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
11 years ago
user a956ce9bb1 Use 'cache-files-ttl' for cache gc, fixes #2441
The configuration option 'cache-ttl' was used instead of 'cache-files-ttl' to determine
whether or not a cache gc should be performed.

* changed 'cache-ttl' to 'cache-files-ttl' to determine if a gc should be performed
* refactored FileDownloader to allow for easier testing
* added test to ensure that the gc is called with the proper config option
11 years ago
smaftoul 0959d8f134 Retry on some 5xx errors
`composer install` gives me some intermittent 502 errors on github. Composer already does some retries. I think, on 502, 503 and 504, we should retry.
11 years ago
Jordi Boggiano 11a0d16ccc CS fixes 11 years ago
Nils Adermann 786ea2929b Merge remote-tracking branch 'github-composer/master' into plugins
* github-composer/master:
  Make sure directories we are downloading to are empty
  Fix parsing of trunk in SvnDriver, fixes composer/satis#88
  Fix file layout in unit tests
  Fix parse error thrown in PHP5.5+
11 years ago
Nils Adermann a080ae3a51 Make sure directories we are downloading to are empty
We already clear them on error anyway and usually they should be
empty, but just to be safe.
11 years ago
Nils Adermann 3b519e44c4 Rename PrepareRemoteFilesystem event to PreFileDownload 11 years ago
Nils Adermann 3960edd64e Turn EventDispatcher into generic solution handling plugins as well 11 years ago
Luís Otávio Cobucci Oblonczyk d4043b6b9a Package options must be passed as argument to downloader 11 years ago
Jordi Boggiano 30f94365f0 Return path of the downloaded file 11 years ago
Albert Casademont 5234e64e97 Retry file download also on Internal Server Error 500 code as is mostly a temporary glitch (at least on GitHub) 11 years ago
Jordi Boggiano 4b26c627ff Retry file downloads 3 times before giving up in case of basic network failure 11 years ago
Jordi Boggiano 2d40e14985 Try twice to remove a directory on windows because sometimes it fails due to temporary locks 11 years ago
Filippo Tessarotto 470adc47df Switched rand() to mt_rand() 12 years ago
Jordi Boggiano a18db058d5 Fix typo 12 years ago
Jordi Boggiano ee1691f799 Also try authenticating on github for 403 responses 12 years ago
Galymzhan 219b489d01 add size-based limit for files cache, fixes #1321 12 years ago
Jordi Boggiano b34e8554d2 Output info about downloads even with --no-progress and show when reading from cache, refs #1410 12 years ago
Galymzhan f59181d7d5 add support for --no-progress, fixes #621 12 years ago
Jordi Boggiano 6ed65c9e91 Reuse hostname var 12 years ago
Jordi Boggiano 224934831d Change all github archive URLs to API URLs and handle fallback for those to nodeload 12 years ago
Wes Mason 1ce7c28f11 Allow OAuth2 authentication to downloads on api.github.com not just github.com 12 years ago
Jordi Boggiano 07f7487c60 Clear cached files when they fail to extract or validate, refs #941 12 years ago
Jordi Boggiano 5a9d986e67 Implement cache GC and fix keys 12 years ago
Jordi Boggiano fb3a43b2f0 Add local cache to dist downloads 12 years ago
Pascal Borreli 83fd3967f0 Fixed PHPDoc 12 years ago
Jordi Boggiano bebd1ce9c7 Always check for OAuth token in git config, fixes #1243 12 years ago
Jordi Boggiano 39e69a3b12 Refactor OAuth acquisition code to generalize it 12 years ago
Jordi Boggiano fa3d6c7ce2 Fix originUrl in FileDownloader, refs #423 12 years ago
Jordi Boggiano ee0cd07468 CS fixes 12 years ago
Jordi Boggiano 027037bb9f Fix dist urls for lock files and hardcoded references 12 years ago
Jordi Boggiano d3d35f24a1 Trim query strings from dist filenames, fixes #1087 12 years ago
Jordi Boggiano 4d84f62cd9 Improve consistency and formatting of verbose output for update/install 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 12 years ago
Jordi Boggiano d74eec9bd5 Clarify output 12 years ago
Jordi Boggiano b84bcd84d6 Let the user know a package is being removed 12 years ago
Jordi Boggiano f7440076fa Revert "Merge remote-tracking branch 'naderman/remove-packages-by-default'"
This reverts commit 2988152602, reversing
changes made to adb4188e12.
12 years ago
Jordi Boggiano d5e35fbe19 Clarify output 12 years ago
Jordi Boggiano b99f9bae60 Let the user know a package is being removed 12 years ago
Jordi Boggiano 9371253e38 Fail hard if a package can not be properly removed 12 years ago