Jordi Boggiano
332c46af8b
Merge pull request from GHSA-h5h8-pc6h-jvvx
...
* Fix external process calls to avoid user input being able to pass extra parameters
* Tweak some fixes
3 years ago
Stephan
2f4b99eacd
MaxFileSizeException should reject download job ( #9778 )
4 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
4 years ago
Jordi Boggiano
b451bcb1ac
Fix issue extracting archives into paths that already exist, fixes composer/installers#479
4 years ago
Jordi Boggiano
e3af4ee606
Include stdout as well as stderr if git stash/diff/.. fails, fixes #9720
4 years ago
Jordi Boggiano
f37f3dab04
Fix abort of downloads and zip extraction to happen immediately, fixes #9390
4 years ago
Jordi Boggiano
8d94e25c2f
Minor fixes
4 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
4 years ago
Markus Staab
8dfe45a026
GitDownloader: combine checkout + reset commands into a single process
...
use a single process instead of 3 to improve performance
4 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
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