5895 Commits (a02802b109c327894fb5513badb1fdd095e30aa3)

Author SHA1 Message Date
Jordi Boggiano daae46e1e0
Merge pull request #9085 from lstrojny/lib-cldr
Allow specifying a version requirement for CLDR
4 years ago
Lars Strojny 5a02ea6a96
Check that class exists 4 years ago
Lars Strojny 404dea61c2
Allow specifying a version requirement for the relevant CLDR 4 years ago
Stephan b25296ef74 Driver: only cache composer.json file without API data to disk 4 years ago
Tyson Andre e5c7835d57 Properly support PHP 8.0 Named Arguments
See https://wiki.php.net/rfc/named_params#internal_functions
(implemented but not yet merged)

An ArgumentCountError will be thrown when passing variadic arguments to
a function with call_user_func_array() if extra unknown named arguments
are encountered.

Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in phar:///path/to/composer.phar/src/Composer/DependencyResolver/DefaultPolicy.php:84

(e.g. for `['phpunit/phpunit' => [72]]`)
4 years ago
Andreas Möller ac055e5718
Fix: Reference 4 years ago
Jordi Boggiano a474dee236
Merge remote-tracking branch 'johnstevenson/elevate2' into 1.10 4 years ago
Jordi Boggiano eac03e16e7
Reuse repository manager and others directly from the Composer instance, refs #9057 4 years ago
johnstevenson 8ddbae358d Remove cygwin php handling in UAC elevation
When called from a native shell and using cygwin PHP, cygpath translates
`/tmp` to `User\AppData\Local\Temp`, rather than `/cygdrive/.../tmp`.
This change does not affect using windows PHP from a Cygwin shell.
4 years ago
Shaun Johnston b4ecca5d0b Supply event dispatcher in Create Project Command
This update allows composer plugins to intercept the
create-project command to inject additional functionality such as
providing additional remote filesystem handling.
4 years ago
Jordi Boggiano 6cb4dc41b8
Fix bitbucket detection of redirects to login page, fixes #9041 4 years ago
johnstevenson 57f91d01c7
Fix doc comment 4 years ago
johnstevenson 272654d6e2
Fixed spelling mistake 4 years ago
johnstevenson cae913c434
Add Windows UAC elevation to self-update command
If self-update fails on Windows due to file permission issues, a .vbs
script is used to elevate a call to the cmd.exe `move` command.
Unfortunately it is not possible to know if the user cancelled the UAC
prompt using this method - it is possible using a Powershell script, but
flashing hidden windows make this a less desirable option.

The only downside is that a UAC invoked process is asynchronous, so a
300 millisecond timeout is used to allow cmd.exe to do its stuff.
Therefore if the OS is busy the script may finish first and incorrectly
report that the file has not been written.
4 years ago
Stephan fb0ad7c900 GitLab: clarify interactive auth prompt 4 years ago
Jordi Boggiano d2d3aa8494
Fix parsing of # in funding links, fixes composer/packagist#1097, closes #9035 4 years ago
Stephan Vock 52332d994e GitDriver: use authentication for supports check 4 years ago
Jordi Boggiano cb1f3899bb
Revert "Store default branch info inside metadata"
This reverts commit 472a62152d.
4 years ago
Michael Stucki 0278e7453d
Clean Git repos during discard 4 years ago
Jordi Boggiano 8c0ecf7337
Clarify why a dev tag was ignored, fixes #8951 4 years ago
Jordi Boggiano 93d4cf6f91
Add --no-show-signature where git supports it, fixes #8966 4 years ago
Jordi Boggiano 472a62152d
Store default branch info inside metadata 4 years ago
Jordi Boggiano da572f1fdc
Merge remote-tracking branch 'GrahamCampbell/allow-list' into 1.10 4 years ago
johnstevenson 54debe8210
Respect disable-tls in Versions::getLatest
Use http to get the latest version when disable-tls is true and error-
trap DiagnoseCommand::checkVersion so that all checks can complete.
Fixes #8657.
4 years ago
Jordi Boggiano a17bbec842
Avoid double warnings about composer.json when running outdated, fixes #8958 4 years ago
Graham Campbell a97d13fc6d
Fixed typo
Co-authored-by: ZhangWei <zhwei.yes@gmail.com>
4 years ago
Graham Campbell fa799970ad Replace whitelist with allow list 4 years ago
Jordi Boggiano 6630519882
Fix #8298 for COMPOSER_DEV_MODE 4 years ago
azjezz 30f994e424 fix deprecations in PHP 8 4 years ago
Timo Webler 541692bbfe
Use "getInitialWorkingDirectory" instead of "getWorkingDirectory"
Follow-up 8d24b61bef
4 years ago
Jean-Michel DELEHAYE 42fc372e52
Add function_exists() for 'pcntl_signal' 4 years ago
Jordi Boggiano 4ce492d01d
Fix detection of gitlab URLs, fixes #8402, closes #8868 4 years ago
Jordi Boggiano 92aed041e4
Make the VersionSelector take Composer API/Runtime versions into account, refs getsentry/sentry-php#1008 4 years ago
Jordi Boggiano bfe71fb952
Fix support for --self --name-only, fixes #8844 4 years ago
Alessandro Lai ff05150c4e Add composer-runtime-api version constant 4 years ago
Alessandro Lai 270c7c3262
Backport validation support for composer-runtime-api (#8842)
Fixes #8841
4 years ago
Jordi Boggiano 19902ba6a9
Merge pull request #8772 from villfa/fix/8771
Dispatch POST_STATUS_CMD even when there is no changes
4 years ago
Jordi Boggiano 2e7ace238a
Merge pull request #8767 from cebe/package-name-double-dash
Allow duplicate dashes in package names (1.10)
4 years ago
Fabien Villepinte c718579623 Dispatch POST_STATUS_CMD even when there is no changes 4 years ago
Carsten Brandt 960fa4b205
Allow duplicate dashes in package names
fixes #8749
1.10 implementation of #8750
4 years ago
Jordi Boggiano 2f7e901940
Fix #8748 in an alternative way to avoid messing with PATH for other binaries, fixes #8758 4 years ago
Jordi Boggiano b3dbd95332
Fix PHP <5.6 syntax, fixes #8759, closes #8760 4 years ago
Jordi Boggiano e121de35a3
Fix variable used for symlinking absolute paths, refs #8700 4 years ago
Jordi Boggiano f70b3b0152
Avoid warning about --2 usage when no channel is requested 4 years ago
Jordi Boggiano b79f2b5e0f
Make sure scripts calling composer call the correct composer binary even if the project requires composer/composer, fixes #8748 4 years ago
Jordi Boggiano ccc8829ed9
Allow forcing self-update to stick to 1.x or 2.x using --1 and --2 flags, fixes #8753 4 years ago
Matthias Van Woensel 067101dbf5
Only send GitHub API token to api.github.com domain (#8747) 4 years ago
Bingqing Wang 46db638678
fix typo 4 years ago
Bingqing Wang 63eb178297
compatible with symfony/console 5.0.0 getVerticalBorderChars() method 4 years ago
Jordi Boggiano 11999118a5
Avoid failing on malformed funding info, fixes #8731 4 years ago
Jordi Boggiano 96c1ba279a
Add infos about plugin install failure 4 years ago
Jordi Boggiano 22a52f5813
Apply suggestions from code review
Co-Authored-By: Andreas Möller <am@localheinz.com>
4 years ago
Andreas Möller 6e88683e35
Fix: Return early 4 years ago
Christian Raue b644f63a93
fixed help URL for ClearCacheCommand 4 years ago
Jordi Boggiano 7e679656a4
Keep absolute path repos symlinks absolute, fixes #8700 4 years ago
Jordi Boggiano 86677ad172
Avoid scanning files twice when generating optimized autoloaders, fixes #8683 4 years ago
Aaron Johnson b41e768e1f
Put backticks around command for readability.
Helps to promote the command to discern it from the sentence. :)
4 years ago
Mathias Berchtold 1ebeb143ae
Fix PHP 8 warnings
The PR fixes this PHP 8 warning:
PHP Deprecated:  Required parameter $ambiguousClasses follows optional parameter $blacklist in phar://.../composer.phar/src/Composer/Autoload/AutoloadGenerator.php on line 339
4 years ago
Jordi Boggiano a453792d6b
Merge pull request #8682 from glaubinix/f/gitlab-guest-token-access
GitLab: properly handle token which has Guest only access
4 years ago
Jordi Boggiano d559bf5387
Allow configuring a path repo to an empty path as long as using wildcards and the wildcard root exists, fixes #8679 4 years ago
Stephan 402c64c271
Update src/Composer/Repository/Vcs/GitLabDriver.php
Co-Authored-By: Jordi Boggiano <j.boggiano@seld.be>
4 years ago
Stephan Vock 55d252b9c3 GitLab: properly handle token which has Guest only access 4 years ago
Jordi Boggiano d271004b30
Also check for package requiring itself in require, not only require-dev 4 years ago
Jordi Boggiano f964b83018
Add bearer support in config command and add to docs/schema, refs #8671 4 years ago
Jordi Boggiano 0b993ba4b9
Merge pull request #8671 from ethanclevenger91/ethanclevenger91/explicit-bearer-support
Bearer support.
4 years ago
Jordi Boggiano 479414d8bd
Move bearer auth to be first to make sure it does not get shadowed by github/gitlab/.. configs 4 years ago
Jordi Boggiano 9d72c92f07
Avoid looping endlessly for invalid GitLab tokens in git config, fixes #8667 4 years ago
Jordi Boggiano 34fb609aad
Merge pull request #8652 from clxmstaab/more-ambiguous
report ambiguous classes across all classmaps
4 years ago
Jordi Boggiano beb64914a3
Retrieve latest funding info for all packages in fund command 4 years ago
Ethan Clevenger cbec8ceb53 Bearer support. 4 years ago
Markus Staab cc5c5dbee1 merge fix from https://github.com/composer/composer/pull/8651 4 years ago
Markus Staab 04a18c72ba fix CS 4 years ago
Markus Staab 883a179dec removed superflous code 4 years ago
Markus Staab 61e0bf1cb5 fix typo 4 years ago
Jordi Boggiano 6d3d7c39ac
Merge pull request #8621 from remorhaz/master
Fix incorrect --no-dev handling of replaced packages
4 years ago
Jordi Boggiano 6cf54170cc
Avoid mixing write/writeError which causes issues on some terminals, fixes #8656 4 years ago
Jordi Boggiano 2285a79c63
Merge pull request #8641 from souweb22/delete_return
delete 'return' and 'spaces' in Filesystem.php
4 years ago
Jordi Boggiano c5ce4de89e
Consistently return void 4 years ago
Jordi Boggiano eb56c8dcd4
Merge pull request #8640 from souweb22/fix_doc
add 'array' to document in ConfigSourceInterface.php
4 years ago
Jordi Boggiano 5d970022e8
Normalize output of create-project target path, refs #8609, refs #8412 4 years ago
Jordi Boggiano 919fa60579
Merge pull request #8611 from ol0lll/fix/create-project-with-absolute-path
Create project with absolute path(fixes #8609)
4 years ago
Jordi Boggiano c6969756e8
Make sure $_SERVER is updated when putenv updates environment variables, fixes #8298 4 years ago
Jordi Boggiano 7a270955f5
Fix issues handling branch names with pipes in them 4 years ago
Jordi Boggiano 05737a46fb
Improve funding info parsing 4 years ago
Jordi Boggiano 0b9c658bef
Add plugin-api-version used to generate a lock file in itself 4 years ago
Jordi Boggiano c4f19e51d8
Rework the funding info parsing to avoid requiring graphql permissions 4 years ago
remorhaz 339ee953e5 Fix incorrect --no-dev handling of replaced packages 4 years ago
Markus Staab 30b1dfb8a9 report ambiguous classes across all classmaps 4 years ago
arai e61b559eb2 delete 'return' in Filesystem.php 4 years ago
arai 766c8d448c add 'array' to document in ConfigSourceInterface.php 4 years ago
arai 1f08138379 Delete variable 4 years ago
Volker Killesreiter e532e70b22 Revert "Chore: Use consistent directory path"
This reverts commit 43e0321ee7.
4 years ago
Jordi Boggiano 4f59162827
Fix class name of caught exception 4 years ago
Jordi Boggiano ee2252c6ac
Add lint check after phar is built
The initial 1.10.0-RC build (593b8dfb29)
had what looks like a bit flip of one > into a :, causing a parse error as $foo->bar became $foo-:bar in some class.

This is quite unpleasant and easy to miss as it requires including the file in question before the error is spotted.

It was quite lucky I ran a composer install with the new phar right after to do something else and spotted the error.

Linting all files covers this problem mostly, at least for the PHP files.
4 years ago
Jordi Boggiano 055a179cc5
Merge pull request #8453 from naderman/funding
Add funding field to composer.json and composer fund command
4 years ago
Jordi Boggiano 8dc055bec7
Fix 5.3 syntax 4 years ago
Jordi Boggiano 653e62f201
Merge pull request #8605 from guilliamxavier/fix-validate-strict-warnings
Fix validate strict warnings
4 years ago
Jordi Boggiano 4ebc318510
Fix 5.3/5.4 builds 4 years ago
Jordi Boggiano 77a477fb57
Add FundCommand 4 years ago
Jordi Boggiano f171d1fd89
Avoid requiring auth for the funding API access 4 years ago