Jordi Boggiano
1110074d5f
Clean up properly after creating the vendor dir
10 years ago
François Pluchino
8b5c00bff0
Fix phpdoc
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
e890d1bc59
Remove use of glob, fixes #3042
10 years ago
Jordi Boggiano
89ec322929
Merge remote-tracking branch 'benja-M-1/feature/svn-auth-from-auth-json'
10 years ago
Jordi Boggiano
71397f82e4
Remove forced dir removal before install, fixes #3035
10 years ago
Jordi Boggiano
f16e3a88e2
Clean up code format and error message
10 years ago
Jordi Boggiano
5336b039c1
Merge remote-tracking branch 'discordier/fix-zip-downloader'
10 years ago
Jordi Boggiano
170f395004
Merge pull request #2949 from jakoch/patch-3
...
renamed listFiles() to getFolderContent(). fixed comment: the method doe...
10 years ago
Jordi Boggiano
56c5af8dc4
realpathGlob tweaks, refs #2932
10 years ago
Richard Quadling
443858dae7
Force all glob results to be realpath'd.
10 years ago
Jordi Boggiano
effacc1185
Do not realpath relative local URLs, fixes #2916
10 years ago
Benjamin Grandfond
a21b0f82db
Allow SVN to connect with credentials provided with the auth.json file
10 years ago
Jordi Boggiano
3ebc869060
Extract functionality from GitDownloader to make it more reusable
10 years ago
Jordi Boggiano
e0886b94a2
Make Git::cleanEnv static
10 years ago
Christian Schiffler
7cec839d30
Fix the ZipDownloader to catch the exceptions thrown in Symfony process.
...
The problem was introduced in 72d4bea8
and causes composer to not fallback
to ZipArchive when unzip can not be executed (i.e. when proc_open() is
not allowed).
10 years ago
Jordi Boggiano
b6981d09e8
Fix handling of origin url in composer repository class
10 years ago
Jordi Boggiano
97873a27af
Update perforce code
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
jakoch
01968efa6f
renamed listFiles() to getFolderContent(). fixed comment: the method doesn't return a "list of files in a directory, including dotfiles", it returns a "list of files and folders, excluding dotfiles". switched from !is_file() to is_dir() check.
10 years ago
Jordi Boggiano
b437c1cc05
Support github auth directly in the RemoteFilesystem class
10 years ago
Jordi Boggiano
6e16d53def
Also use rawurlencode in git downloader, refs #2859
10 years ago
Jordi Boggiano
07b8fe8109
Refactor code so it works cross-platform, refs #2825
10 years ago
Jordi Boggiano
01bf61fede
Merge remote-tracking branch 'sebbrandt87/master'
10 years ago
Sebastian Brandt
f633ab503e
Update SvnDownloader.php
10 years ago
Clark Stuth
dd1fd0e306
fixed perforce to reference labels instead of invalid tags
10 years ago
Clark Stuth
3a3661a0b3
removing dead code lines and excess comments
10 years ago
Clark Stuth
24dd42267f
almost all unit tests passing after IOInterface dependency refactor. no longer passing IOInterface into any Perforce methods
10 years ago
Clark Stuth
0f7b078d6c
added new dependency to Perforce object, updating some tests.
10 years ago
Sebastian Brandt
16489dc084
Update SvnDownloader.php
...
added --ignore-ancestry to the switch statement because it can be a problem with svn:properties
10 years ago
Jordi Boggiano
78343ead10
Merge pull request #2765 from neoascetic/gzip_downloader
...
Gzip downloader (resolves #2521 )
10 years ago
Pavel Puchkin
9fda8cdc84
Type in comment
10 years ago
Pádraic Brady
306ba77e93
Implement the RemoteFilesystem Factory everywhere...
...
- also fixes impacted test
10 years ago
Pavel Puchkin
7ccb91667f
Fallback to gzip functions when on Windows
10 years ago
Jordi Boggiano
28bb781324
Capture response bodies in exceptions when http requests fail
10 years ago
Pavel Puchkin
c598fdb0f5
Since there is no solution for non-unix (for now), remove the condition
10 years ago
Pavel Puchkin
ba56ac362a
Final fix. Preserve initial file name
10 years ago
Pavel Puchkin
a287884619
There is no need in DIRECTORY_SEPARATOR since it Unix
10 years ago
Pavel Puchkin
3811fe7d8b
Resolves #2521 . First and simple attempt to make a gzip downloader
10 years ago
Jordi Boggiano
665a2bd0c0
Tweak error message and make TransportException extend from RuntimeException, refs #2753
11 years ago
Nils Adermann
31fd6c233c
Rethrow download exceptions when no options left & clean up code
11 years ago
Nils Adermann
5ed18d9aa2
Fail over from source to dist and vice versa when downloads fail
...
Any RuntimeException descendent will be caught and cause another
download attempt using either source or dist depending on what was
attempted first.
11 years ago
Jordi Boggiano
60bf5633ea
Wording tweaks, refs #2728
11 years ago
Jordi Boggiano
7ac1f1265e
Merge remote-tracking branch 'sndpl/issue/2494'
11 years ago
Sandy Pleyte
40095d980c
Fix for #2494 , don't retrieve svn log when the references don't contain a reference number.
11 years ago
Jordi Boggiano
432ace33d4
Clean up svn environment to fix OSX issues, fixes #2708 , refs #2146
11 years ago
Jordi Boggiano
5d4900e79d
Add --no-checkout flag to avoid checking out the default branch first, fixes #2717
11 years ago
Jordi Boggiano
245461d8ed
Merge pull request #2682 from gena01/ssh-support-in-github-protocols
...
Adding ssh protocol support to "github-protocols".
11 years ago
Jordi Boggiano
e03057156c
CS fixes
11 years ago
Gennady Feldman
ac78eaa027
Adding ssh protocol support to github-protocols.
11 years ago
Julius Beckmann
ed5da804dd
Fixed handling of Metapackages in DownloadManager.
...
The "getDownloaderForInstalledPackage" returns null for "metapackage" and the download(), update() and remove() methods did not handle this return value correctly.
11 years ago
Alexander
23a61c5a1d
Fix typo in doc
11 years ago
Jordi Boggiano
bc153ea78b
Clean up var name
11 years ago
Andrej Hudec
5b4a3f9e9f
List all available downloader types in exception message.
11 years ago
Jordi Boggiano
f6666fe601
Update source/dist refs when a commit is recovered from, fixes #1130
11 years ago
Jordi Boggiano
543599cdf7
Fix commit is gone recovery, refs #1130
11 years ago
Jordi Boggiano
81994f6b90
Re-download files when the cached copy is invalid, fixes #1496
11 years ago
Jordi Boggiano
1d0cc93fbb
Handle metapackages properly in downloadmanager, fixes #2466
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
Jakub Onderka
afc9069771
Check exception code only if class ZipArchive exists
...
If is for example exception throwed when downloading tar archive on system without installed zip extension, PHP hangs on fatal error " Class 'ZipArchive' not found".
11 years ago
mwhittom
a8084e46ff
Added error handling and error messages around missing perforce driver, invalid username/password
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
Chris Smith
d348dd44cd
Fix URL sanitisation regexp being too greedy
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
Gennady Feldman
a4d7fc138a
Fixing broken unit test.
11 years ago
Jordi Boggiano
7148b22414
Add github-domains config value for GitHub Enterprise setups, fixes #728
...
Signed-off-by: Gennady Feldman <gena01@gmail.com>
11 years ago
mwhittom
0c5f4d9860
Update to fix issue with multiple perforce repositories
11 years ago
Jordi Boggiano
0fbb4cbd16
CS fixes and renaming a few methods, refs #2184
11 years ago
Jordi Boggiano
11a0d16ccc
CS fixes
11 years ago
Jordi Boggiano
9a806658d6
Merge remote-tracking branch 'vuhl/master'
...
Conflicts:
src/Composer/Factory.php
11 years ago
Jordi Boggiano
3f6227a996
Add workaround for php bug 53460 glob() can return false, fixes #2278
11 years ago
Derrick Nelson
c98bce0446
Added RarDownloader for downloading RAR archived packages.
11 years ago
mwhittom
8a319a719b
Fixed issue with non-streaming perforce depots, also fixed issue where PerforceDownloader was not logging in
11 years ago
Derrick Nelson
9a54c476eb
Recursively set write permissions on unzipped package contents to resolve cache unlinking issue.
11 years ago
mwhittom
2e737ac439
updated to replace double-quotes with single quotes
11 years ago
mwhittom
774a55befd
Updated to match psr-2 spec, fixed header comments
11 years ago
matt-whittom
f737e49aae
Fixed issue with downloader assuming repository would be VcsRepository
11 years ago
matt-whittom
f3722a46ed
Updated comments
11 years ago
matt-whittom
dd81449998
Updated to remove vfsStreams (no longer needed by tests)
...
Updated Perforce to cleanup, modified VcsRepository to call cleanup on Driver class
Updated tests, perforce constructor to make tests cleaner/easier
11 years ago
matt-whittom
7fdcdb4c54
Updated to complete functionality in Downloader to handle updates, returning change logs.
11 years ago
matt-whittom
1019c014e5
using theirs
11 years ago
matt-whittom
bab10dd9f8
Added ability to pass p4user and p4password in composer.json
11 years ago
matt-whittom
53d6fcd6d3
using theirs
11 years ago
matt-whittom
a5df2851ef
Finished cleanup of debug messages.
11 years ago
matt-whittom
64bda65e11
Updated Perforce driver to use labels
...
dev checkin, lots of cleanup to do
11 years ago
matt-whittom
36dd7dfea5
Cleaned up perforce code
...
Checks to see if already logged in to Perforce, and prompts for password if not and P4PASSWD is not set
Checks server url with perforce call
Checks for composer.json file, and returns the contents of the file already retrieved.
11 years ago
matt-whittom
0d061f2530
Added Perforce to Composer
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
Jordi Boggiano
78a8a5ca0b
Fix output of invalid zip files when download is retried
11 years ago
Jordi Boggiano
22369fd3ae
Realpath hg paths to avoid problems after a chdir, fixes #2096
11 years ago
Jordi Boggiano
bd345c3b43
Add IO to proc executor in a few more places to get more debug info out
11 years ago
Jordi Boggiano
1217a632fe
Adjust function signatures and add type hints, refs #2136
11 years ago
Jordi Boggiano
d96d9b3926
Merge remote-tracking branch 'sascha-egerer/feature/changereport_interface'
11 years ago
Jordi Boggiano
7912253df6
Retry downloading when a corrupt zip is found, fixes #2133 , fixes #2128 , fixes #2125
11 years ago
Sascha Egerer
80cebbd4be
Fixed getLocalChanges calls in VCS downloaders to match new function interface
11 years ago
Sascha Egerer
49d89bbbfc
CGL fix
11 years ago
Sascha Egerer
667176d1d0
Add ChangeReport Interface
...
Added a ChangeReport Interface to allow also non VCS-Downloaders to check the status of there package
11 years ago
Jordi Boggiano
67407801b8
Add debugging info for invalid zip files to try and get to the bottom of it, refs #2125
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
771233a5a0
Make it clear what is going on when a vcs folder is missing, fixes #2108
11 years ago
Jordi Boggiano
a6e3b23ca5
Stop trying to bypass https since github does not and will not support non-https transports
11 years ago
Jordi Boggiano
81b2b84112
Clean up git env vars consistently
11 years ago
Jordi Boggiano
27d958a1de
Extract archives into vendor dir to avoid permission errors, fixes #1765 , fixes #1714
11 years ago
Jordi Boggiano
f79c4e4309
Detect safe_mode and output correct error, closes #2006
11 years ago
Jordi Boggiano
7b6f0ab047
Code cleanups, enforce url for https, refs #2009
11 years ago
Stéphane Klein
42119dde6b
Use github protocols setting for push urls
11 years ago
Jordi Boggiano
8d0b7f278e
CS fixes
11 years ago
Pavel Savinov
831bd844bd
Almost PHPDoc problems fixed
11 years ago
Christoph
0524d28b03
fixed escaping the path (it's no cmdline argument anymore)
11 years ago
Jordi Boggiano
c479a26d71
Add workaround for msysgit failing to handle symlinks on windows, fixes #1048 , fixes #1418
11 years ago
Jordi Boggiano
4cac2caf70
Make sure cd call allows switching drives on windows, fixes #1971
11 years ago
Jordi Boggiano
8b8dc1fd70
Remove all possible cd calls, refs #1971
11 years ago
Jordi Boggiano
b38db73611
Clean up rogue git env vars in case this is running in a git hook, refs #1832
11 years ago
Phansys
d574e5fcab
Added FilesystemException to handle errors on local filesystem.
11 years ago
Jordi Boggiano
8a06e461e5
Fix a few bugs, fixes #1867
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
343d4effaa
Fix usage of GitDownloader with relative paths, fixes #1843
11 years ago
Jordi Boggiano
5cdf40d165
Output VcsDownloader process commands in -vvv mode
11 years ago
Jordi Boggiano
3fd883a489
Set cwd instead of using cd in GitDownloader, refs #1832
11 years ago
Jordi Boggiano
2ec75f298d
Remove useless output in verbose mode
11 years ago
Jordi Boggiano
10a7008fdf
Trim query string from extension when downloading archives
11 years ago
Jordi Boggiano
d81740ab7d
Fix authorization/authentication merge, fixes #1684
11 years ago
Jordi Boggiano
c9f0e458a2
Merge remote-tracking branch 'machee/gitUserPassNonGithub'
...
Conflicts:
src/Composer/Downloader/GitDownloader.php
11 years ago
Jordi Boggiano
f06c0cb580
Code reorgs and make bool values real booleans, refs #1637
12 years ago
Ricard Clau
2a2bb6aad6
remove unnecessary else
12 years ago
Ricard Clau
56f4625ec8
check first if there are changes
12 years ago
Ricard Clau
48ac383599
initial steps with new config value, implementation of discard changes for git and svn
12 years ago
Jordi Boggiano
e3f06582e4
Clean up archive downloader, fixes #1630
12 years ago
Jordi Boggiano
9f961dca92
Guard against arrays being passed to is_file, fixes #1627
12 years ago
Jordi Boggiano
88ae6c023b
Extract archives into temp dir to shorten paths and avoid issues on windows, fixes #1591
12 years ago
Jordi Boggiano
f98f093f7b
Minor code reformatting and error message clarification
12 years ago
Jordi Boggiano
8bcb442d2b
Merge remote-tracking branch 'romainneutron/zip-downloader'
12 years ago
Jordi Boggiano
2d40e14985
Try twice to remove a directory on windows because sometimes it fails due to temporary locks
12 years ago
Romain Neutron
72d4bea89e
Change strategy for ZipDownloader
...
Try to use unzip command-line before ZipArchive as this one does not correctly handle file permissions whereas unzip does.
12 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
Jordi Boggiano
514a3cde77
CS fixes
12 years ago
Galymzhan
219b489d01
add size-based limit for files cache, fixes #1321
12 years ago