54 Commits (52967c32cff8b68e85a4980f99767405a486d44d)

Author SHA1 Message Date
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 6 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'
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 4d082f77b8 Simplify composer output to take less lines 8 years ago
Jordi Boggiano 0c4cae056f Simplify code 8 years ago
Rens Admiraal a294af3f16 Allow setting default transport strategy for path repositories
This change allows setting COMPOSER_MIRROR_PATH_REPOS to 1
in the environment to set the default strategy to 'mirror'.

This allows using 'mirror' during deployments while still symlinking
on a development machine. The default is still overwritten by the
options on the repository configuration.
8 years ago
Steve Buzonas 8d766c8eb2 cleaner implementation of status output with support for path repositories 8 years ago
Jordi Boggiano 3b0a1c6f70 Run cs fixer and update config to latest master 8 years ago
Christoph Herbst cbfd83ba0e trim trailng slash from symlink names
symlink names are not allowed to contain
a trailing slash, so trim it.
8 years ago
Alain Schlesser 4e9885e9bc Make sure to use an absolute path for symlinking in PathDownloader. Resolves #4451 8 years ago
Jordi Boggiano 0ed5b541a9 Fix CS 8 years ago
Niels Keurentjes 756f9e10b7 Further protect junctioned path repos from accidentally deleting source packages. 8 years ago
Peter Buri 861b2bc8e8 Introduce option to force copy instead of symlinking in PathDownloader 8 years ago
Jordi Boggiano d6d0435c54 Merge pull request #4845 from curry684/pull-4690
Implement junctioning on Windows for path repositories
8 years ago
Niels Keurentjes 54c079b559 Fixed Windows detection based on #4873 and suppressed some console output in removeJunction. 9 years ago
Niels Keurentjes 05caf8349c Fixed bug potentially causing broken sites and solved #4431 along the way. 9 years ago
Niels Keurentjes 5489586436 Fully implemented junctioning on Windows for path repositories. 9 years ago
Samuel ROZE f6d5d65bcd Use shortest relative paths for symlinks 9 years ago
Samuel ROZE d0a9550dea Uses `realpath` to fix relative path issues 9 years ago