69 Commits (6a466a120a404d1c5d492e5ca715841c491517fc)

Author SHA1 Message Date
Jordi Boggiano 6a466a120a
Enable strict types on all files 2 years ago
Jordi Boggiano 0db443ba5f
Add visibility to all consts, fixes #10550 2 years ago
Jordi Boggiano 7abc8da7d3
Add more types 2 years ago
Jordi Boggiano 6da38f83a0
Add parameter types to all the things 2 years ago
Jordi Boggiano eda9014bef
Add return types to all code which is not being extended by open source packages 2 years ago
Jordi Boggiano a16ed3d0ed
Add return types to private/internal methods 2 years ago
Jordi Boggiano 32852304d0
Make use of some new PHP features 2 years ago
Jordi Boggiano 62d5f4f295
Fix phpstan errors 2 years ago
Jordi Boggiano 45bbe43aac
Fix case where symlink:true still can downgrade to a copy on windows, refs #10482 2 years ago
Jordi Boggiano bd4d624cc7
Read first from $_SERVER and $_ENV before using getenv (#10218) 3 years ago
Jordi Boggiano c65d09dff7
Fix @inheritDoc annotations 3 years ago
Martin Herndl fa4d4e20e9
Add types to `Downloader` (#10193) 3 years ago
Jordi Boggiano 91a1a471db
Fix path repo bug causing symlinks to be left behind when uninstalling, fixes #10023 3 years ago
Jordi Boggiano 4940009f83
Bump phpstan to level 3 (#9734)
Clean up PackageInterface/CompletePackageInterface, add missing methods, type things in solver as BasePackage, added CompleteAliasPackage, ..
3 years ago
Jordi Boggiano 40800df6bd
Fix CS 3 years ago
Jordi Boggiano 48d02b479b
Fix output of PathDownloader during upgrades 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 b7d770659b
CS fixes 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
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
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 83c64a9d19
Reuse operation formatting logic in downloaders 4 years ago
Jordi Boggiano 9c78eda7db
Fix FileDownloader::update impl to handle promises 4 years ago
Jordi Boggiano a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks 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
Jordi Boggiano 87757de6bc
Merge branch '2.0' 4 years ago
Jordi Boggiano 7e679656a4
Keep absolute path repos symlinks absolute, fixes #8700 4 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 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 5f988a34a6
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 9957807990
Merge branch 'master' into 2.0 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 3dfcae99a9 Add parallel download capability to FileDownloader and derivatives 5 years ago
Jordi Boggiano 9bc578e24a Fix warning tag name, fixes #7494 6 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 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
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
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 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 4d082f77b8 Simplify composer output to take less lines 8 years ago