940 Commits (e8a3a330232cf53e1b4bbbb3a8ba8947122e575d)

Author SHA1 Message Date
Matthias Van Woensel 067101dbf5
Only send GitHub API token to api.github.com domain (#8747) 5 years ago
Jordi Boggiano aa6be02c64
Allow COMPOSER_DISABLE_NETWORK to work with GitHubDriver by doing a cache priming pass first 5 years ago
Adam Žurek 25cd2382cb
Raise phpstan level to 1 (#8027) 5 years ago
Jordi Boggiano d63eb8179e
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 0b993ba4b9
Merge pull request #8671 from ethanclevenger91/ethanclevenger91/explicit-bearer-support
Bearer support.
5 years ago
Jordi Boggiano 479414d8bd
Move bearer auth to be first to make sure it does not get shadowed by github/gitlab/.. configs 5 years ago
Jordi Boggiano 9d72c92f07
Avoid looping endlessly for invalid GitLab tokens in git config, fixes #8667 5 years ago
Ethan Clevenger cbec8ceb53 Bearer support. 5 years ago
Jordi Boggiano c5ce4de89e
Consistently return void 5 years ago
arai e61b559eb2 delete 'return' in Filesystem.php 5 years ago
Jordi Boggiano bc002ae1fb
Merge branch 'master' into 2.0 5 years ago
Stephan Vock 243ee9b1e4 Git: log error for sync mirror with existing local copy 5 years ago
Jordi Boggiano 006c3de542
Fix tests and make TTY usage on ProcessExecutor cleaner 5 years ago
Jordi Boggiano f572636628
Add support for TTY mode on Linux/OSX in script handlers when running in interactive mode, fixes #5856, fixes #3299, closes #4036 5 years ago
Jordi Boggiano 1e68555e0a
Sanitize URLs in getRepoName and centralize the Url sanitization process 5 years ago
Jordi Boggiano e6749d8717
Add comment, fix 5.3 build 5 years ago
Jordi Boggiano 30b6a41035
Extract MetadataMinifier util 5 years ago
Jordi Boggiano 4b6c25d4bc
Use Authorization header instead of deprecated access_token query param, fixes #8454 5 years ago
Jordi Boggiano a6176a7beb
Add IOInterface methods 5 years ago
Jordi Boggiano 23359f2db6
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 3d72b56ed6
Merge branch '1.9' 5 years ago
Jordi Boggiano d3f1c664d4
Avoid formatting output from external processes, fixes #8524 5 years ago
Tyson Andre 6827105a5b Fix nits on typos 5 years ago
Adam Žurek 406a28708f updated phpstan to 0.12 5 years ago
Jordi Boggiano 5fc31716dd
Avoid using CURLPIPE_HTTP1 in php7.4+ 5 years ago
johnstevenson 74ba9decdf Rewrite NoProxyPattern to include IPv6
This includes two breaking changes:
- the hostname is not resolved in the case of an IP address.
- a hostname with a trailing period (FQDN) is not matched.

This brings the basic implementation in line with curl behaviour, with
the addition of full IP address and range matching (curl does not
differentiate between IP addresses host names).

The NO_PROXY environment variable can be set to either a comma-separated
list of host names that should not use a proxy, or single asterisk `*`
to match all hosts.

- Port numbers can be included by prefixing the port with a colon `:`.
- IP addresses can be used, but must be enclosed in square brackets
`[...]` if they include a port number.
- IP address ranges can specified in CIDR notation, separating the IP
address and prefix-length with a forward slash `/`.
5 years ago
Jordi Boggiano 88b051c96b
Merge branch 'master' into 2.0
Update deps
5 years ago
Jordi Boggiano 67e170eaa8
Merge branch '1.9' 5 years ago
Jordi Boggiano 89f6b2c54c
Merge pull request #8418 from glaubinix/f/github-authentication-behaviour
Git: fix authentication handling for private GitHub repositories
5 years ago
Stephan Vock b847115617 Git: fix authentication handling for private GitHub repositories 5 years ago
Jordi Boggiano eb3e3063b8
Revert "When network is disabled all uncached requests result in 404"
This reverts commit c325112670.
5 years ago
Nils Adermann c325112670 When network is disabled all uncached requests result in 404 5 years ago
Nils Adermann 7ef3a31de7 Make TransportException in network disabled case clearer
Otherwise it's a bit hard to work out what request triggered the exception
5 years ago
johnstevenson 7e649fac41 Fix Windows test regression from commit 149250a
Commit: 149250ab92

ProcessExecutor::escape handled a false value inconsistently across
platforms, returning an emtpy string on Windows, otherwise `''`. This
is fixed to return `""` on Windows.

The GitDownloaderTest code has been appropriately updated.
5 years ago
Jordi Boggiano f867c407c7
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano a0690525b5
Merge branch '1.9' 5 years ago
Jordi Boggiano 149250ab92
Remove credentials from git remotes in cache and vendor dirs
This only removes the credentials if they are managed by composer auth.json or equivalent, if the credentials were present in the package URL to begin with they might remain

Refs #8293
Fixes #3644
Closes #3608
5 years ago
Jordi Boggiano 4e43f849c7
Avoid overwriting credentials with existing ones from git repos, refs #8293 5 years ago
Jordi Boggiano 12184aa9c5
Fix github auth to try https with pwd also, fixes #8356 5 years ago
Jordi Boggiano b925d06861
Fix gitlab support for basic-auth fallback from ssh URLs 5 years ago
Jordi Boggiano ae9cc3db58
Avoid clearing the error output during removeDirectory execution, losing git error output, fixes #8351 5 years ago
Jordi Boggiano bc2a1d762a
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 78b8c365cd
Merge branch '1.9' 5 years ago
Jordi Boggiano f2700bbd98
Merge pull request #8377 from TysonAndre/misc-nit
Fix misc phpdoc and strpos arg order nits for suggestions
5 years ago
Mikhail Fesenko c2f1a6b643 Added clear cache for windows, fix tests 5 years ago
Tyson Andre 4c8e41d9a9 Fix misc phpdoc and strpos arg order nits
https://www.php.net/strpos has the signature
`strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : int`
(The needle is usually the constant)

`strpos('/', $suggestion)` would only be `false` for `''` and `'/'`

So the existing check would just not suggest **anything** that was
already installed (from pecl, built-in, or composer).

The intent seems to be to not suggest non-vendored php packages
that were already installed. (b20cc22ebb)
5 years ago
Stephan Vock 0d1d35c346 Debug: display used authentication for http calls 5 years ago
Jordi Boggiano f0d565bb6d
Avoid transforming the origins when prompting for auth, fixes #8300 5 years ago
Jordi Boggiano fd70d9cdc3
Stripe access tokens in a more generic way 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
Stephan Vock f9fccbab1e GitHub: don't display access token in debug log 5 years ago
Jordi Boggiano 4dabc17ec1
Fix use statement 5 years ago
Jordi Boggiano bfee701f9b
Deduplicate findHeaderValue code 5 years ago
Jordi Boggiano 6c4357a7ed
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 0261ce8092
Improve handling of non-standard ports for GitLab and GitHub installs, fixes #8173 5 years ago
Thomas Perez 3e66d0514a Fix error_handler return type declaration 5 years ago
Jordi Boggiano 26a3e12c96
Merge pull request #7994 from aschempp/feature/zip-util
Extract the ZIP utility functions from ArtifactRepository
5 years ago
Jordi Boggiano 7edd689533
Merge pull request #8243 from carusogabriel/remove-explict-void-return
Remove explicits void returns
5 years ago
Gabriel Caruso 8b5be1d08c
Remove explicts void returns 5 years ago
Gabriel Caruso 6c8ddd4d57
Remove unused private properties 5 years ago
Nils Adermann d2fa1e1319 Merge branch 'master' into 2.0
* master: (48 commits)
  SVN: hide passwords for debug output
  Free $solver asap
  fixes #8179
  [minor] Fixed a typo in the CHANGELOG.md.
  Update deps
  Update changelog
  Revert "Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET" Revert "Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151"
  Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151
  Fix display of HHVM warning appearing when HHVM is not in use, fixes #8138
  Read classmap-authoritative and apcu-autoloader from project config when installing via create-project, fixes #8155
  Use possessive quantifiers
  Update xdebug-handler to 1.3.3
  fixes #8159
  Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET
  flag should come before script name
  use full command name, not abbreviated/alias
  modify text
  Document the alternatives to disable the default script timeout
  Anchor pattern
  Fix URL resolution for Composer repositories
  ...
5 years ago
Nils Adermann e022c07370 Merge branch '1.8'
* 1.8:
  SVN: hide passwords for debug output
5 years ago
Stephan Vock 8da046e4e9 SVN: hide passwords for debug output 5 years ago
Nicolas Grekas 794234946c Let curl handle proxy and cipher list itself 6 years ago
Dane Powell d4150cafc4
Move sortPackages to static helper class. 6 years ago
Dane Powell 266a41e046
Refactor sortPackageMap to depend on separate sortPackage function. 6 years ago
Jordi Boggiano 0317199507
Merge branch 'master' into 2.0 6 years ago
Jordi Boggiano a186620210
Merge branch '1.8' 6 years ago
Jordi Boggiano 625bcee63a
Fix handling of warnings to incl all 4xx responses 6 years ago
Jordi Boggiano 8944627245
Fix syntax and backslash escaping 6 years ago
Novicaine 486b25fd30
Fix for UNC Windows paths
Made isAbsolutePath recognize Windows UNC-style absolute paths starting with \\
6 years ago
Andreas Schempp 0e2215dc6c Added full unit test coverage 6 years ago
Andreas Schempp a91fd20673 Return the composer.json content instead of a zip:// path 6 years ago
Andreas Schempp 0d0cb53f31 Adjust Zip Util to only find the root composer.json 6 years ago
Andreas Schempp 05d6b21785 Use self:: for private method 6 years ago
Andreas Schempp 9de07bed1b Fixed docblocks 6 years ago
Jordi Boggiano f77285916a
Clean up temp file on curl request failure and make sure the response body is avaiable on 3xx/4xx/5xx responses 6 years ago
Jordi Boggiano d37642d9f2
Add missing use 6 years ago
Jordi Boggiano 3f5a986170
Show warning in all 400/500 responses if available, fixes #7814 6 years ago
Jordi Boggiano 5f988a34a6
Merge branch 'master' into 2.0 6 years ago
Jordi Boggiano 4271167495
Improve version reporting 6 years ago
Matthew Brown 65903aacfd Fix type issues (#7996)
* Fix type issues found by Psalm
6 years ago
Jordi Boggiano 6c782599f1
Make IOInterface implement psr-4 LoggerInterface, fixes #5180 6 years ago
CZechBoY a062cd1a31
added phpstan on level 0 6 years ago
Jordi Boggiano 9957807990
Merge branch 'master' into 2.0 6 years ago
Andreas Schempp 4d85e217c3 Extract the ZIP utility functions from ArtifactRepository 6 years ago
Markus Staab 0aa030f09d
Fixed typo introduced in recent fix 6 years ago
Markus Staab fc2c445c06 Make sure we properly usleep() on windows rmdir/unlink
usleep() returns void, therefore the previous code didn't work
6 years ago
johnstevenson 6212eadcb0 Only use junctions if they can be safely removed 6 years ago
johnstevenson d1cf69fa92 Remove junctions with PHP rather than system rmdir
PHP will happily remove junctions using its `rmdir` function (tested on
versions back to 5.2.17). This saves invoking system `rmdir` through
cmd.exe.
6 years ago
johnstevenson da0dc74414 Update doc block, remove redundant clearstatcache 6 years ago
johnstevenson e085a72f64 Fix mode bitmask when detecting a Windows junction 6 years ago
Jordi Boggiano 4517c00d40 Merge branch 'master' into 2.0 6 years ago
Andrew Gillis dec2b5cd50 add gitlab token auth for git clone 6 years ago
Jordi Boggiano b89720b52a Merge branch 'master' into 2.0 6 years ago
Jordi Boggiano a9aaa25d4c Fix compat with Symfony Process 4.2, fixes #7923 6 years ago
Jordi Boggiano 3dfcae99a9 Add parallel download capability to FileDownloader and derivatives 6 years ago
Jordi Boggiano 4b7658a2a8 Small tweaks and make sure composer fails properly in a plane 6 years ago
Jordi Boggiano 137c32e72e Do not prohibit http for old provider URLs on .org in case they are used 6 years ago
Jordi Boggiano b47330adf1 Refactor ComposerRepository to work with combined repos having lazy providers and partial packages 6 years ago
Jordi Boggiano 14d6bcedda Fix redirect handling and some output tweaks 6 years ago
Jordi Boggiano fc03ab9bba Add COMPOSER_DISABLE_NETWORK env var for debugging 6 years ago
Jordi Boggiano 788a822b24 Add some phpdocs 6 years ago
Jordi Boggiano 5d2b3276eb Avoid starting all jobs immediately 6 years ago
Jordi Boggiano 64384f8b15 Fix tests 6 years ago
Jordi Boggiano 9986b797fb Add support for redirects/retries in curl downloader 6 years ago
Jordi Boggiano fd11cf3618 Port/extract most behavior of RemoteFilesystem to CurlDownloader 6 years ago
Jordi Boggiano 09fd239f24 Fix factory test 6 years ago
Jordi Boggiano 1cd9f4f9db Disable request_fulluri by default for HTTPS connections 6 years ago
Jordi Boggiano f946d8eb5a More RemoteFilesystem usage removals and some repository/vcs driver refactorings 6 years ago
Jordi Boggiano 713bc4de1d Minor fixes and updated the rest of the code/tests to use HttpDownloader 6 years ago
Jordi Boggiano 56805ecafe Add HttpDownloader to wrap/replace RemoteFilesystem with a new curl multi implementation 6 years ago
Jordi Boggiano 411dd51f20 Merge branch 'master' into 2.0 6 years ago
Michele Locati 04098153c8 Add support for running composer with phpdbg (#7798) 6 years ago
Jordi Boggiano 2e0f31106a Merge remote-tracking branch 'origin/master' into 2.0 6 years ago
Jordi Boggiano 5a56bb6971 Remove BC event and constraint classes 6 years ago
Gabriel Caruso 2a13bb2649 Fixes from PHPStan (#7687)
* fix docblocks

* remove redundant conditional

* fix wrong variable name

* fix wrong namespaces

* add missing private members

* remove unused/redundant arguments

* move testcase class

* exclude TestCase.php

* Tweak RuleWatchGraph type hints

* Tweak doc comment
6 years ago
Jordi Boggiano 2528654c53 Merge branch '1.7' 6 years ago
Seven Du 148e503b31 Modified comment block (#7700)
* Modified comment block
6 years ago
Michele Locati 41458c7518 Don't call Symfony ProcessUtils::escapeArgument 6 years ago
François-Xavier de Guillebon 114217c6e3
Fix ini_get() for boolean values 6 years ago
Gabriel Caruso 2805a69e58 Simplify conditions and inline temp variables 6 years ago
Gabriel Caruso a64b652a6b Use func_num_args instead of counting on func_get_args 6 years ago
Stephan Vock 8b8df01336 Bitbucket: fix redirect behaviour 6 years ago
Gabriel Caruso 71c8735e11 Use combined assignment operators 6 years ago
Jordi Boggiano bf125295df Fix escaping of URLs in Perforce and Subversion drivers 6 years ago
Daniel Karl 849f4eda56 Using cwd for 2nd process-execution (auth) in HgUtils 6 years ago
Jordi Boggiano e718f34ba4 Properly detect rate limit errors on github before outputting messages, fixes #6621 6 years ago
Jordi Boggiano e7a9bd3362 Attempt workaround for repo.packagist.org domain SSL on very old PHP, fixes #7530 6 years ago
Nicolas Grekas a3bbcf9c77 Make RemoteFilesystem::getRemoteContents() report response headers also on exceptions 6 years ago
Markus Staab eb94f8346a
Fixed typo 6 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago
Jordi Boggiano c5fa3bdde0 Migrate to repo.packagist.org for package metadata 6 years ago
Jordi Boggiano 1983a450b4 Use rawurldecode instead of urldecode, fixes #7407 6 years ago
Jordi Boggiano d64f95b70c
Merge pull request #7475 from Elendev/mercurial-auth-json
Add support for authentication with mercurial repositories.
6 years ago
Elendev ea5644281a Display the error output in the thrown exception 6 years ago
Elendev 5c2b34a1af Encode the username correctly (fix typo) 6 years ago
Jonas Renaudot 1a725d5e1f Add support for authentication with mercurial repositories. 6 years ago
Vladimir Reznichenko cd39efc72c New finding by Static Code Analysis 6 years ago
Gabriel Caruso 7d9f8e2247
Improvements
Small improvements, such as remove unused imports, unecessaries casts, parentheses, etc.
6 years ago
zefrog fd00ea7ce8 Fix Git detection of authentication failure when no tty is attached to the process 6 years ago
Jordi Boggiano 4ebb747e12 Merge branch '1.6' 6 years ago
Jordi Boggiano e697293cd9 Handle broken symlinks more cleanly, fixes #7255 6 years ago
Jordi Boggiano 38866ba310 Merge remote-tracking branch 'johnstevenson/external-xdebug' 7 years ago
Jordi Boggiano 2bd34c0534 Merge branch '1.6' 7 years ago
Fabio Bas c9aa9c0d2f Fix usage of svn user-provided credentials, fixes #7114, closes #7228 7 years ago
Jordi Boggiano 174c71de04 Handle http 401/403 differently to allow reading warning message 7 years ago
Markus Staab 71d058b97b refactored "svn --version" calls into a single place, closes #7152
this saves a lot of process-spawning as we re-use the result of a process started once.
7 years ago
Jordi Boggiano e76d32817e
Merge pull request #7070 from nicolas-grekas/fix
Fix RemoteFilesystem::getRemoteContents() on-failure behavior
7 years ago
johnstevenson ed97c2116c Use external XdebugHandler library 7 years ago