6540 Commits (6cf4ba051c858a31371462d6e16cc479a7ff9ac2)

Author SHA1 Message Date
Jordi Boggiano a133e694d0
Speed up fund command fetching of latest data and make sure it uses default branch info 4 years ago
Jordi Boggiano 6f9b39180c
Add phpdocs 4 years ago
Jordi Boggiano 05dacbdabb
Rename DEV_MASTER_ALIAS to DEFAULT_BRANCH_ALIAS 4 years ago
Jordi Boggiano 821e575658
Merge branch '1.10' 4 years ago
Jordi Boggiano 74d89d7110
Get rid of default branch handling in version guesser as it is way too time intensive at every initialization 4 years ago
Jordi Boggiano a5e608fb73
Merge pull request #9008 from Ayesh/strtr-improvements
Replace cascading str_replace() calls with strtr()
4 years ago
Jonas Drieghe eea7564c9e Revert accidental rename of $dependencies variable in unrelated code branch 4 years ago
Jonas Drieghe d5d956df4d Use correct variable name 4 years ago
Jonas Drieghe 73a721c7e5 Add the missing summary format to command-line help text 4 years ago
Jonas Drieghe ec6e05d55f Sort licenses so that the most used license will appear first 4 years ago
Jonas Drieghe 668655c21a Rename variable for clarity 4 years ago
Stephan Vock 52332d994e GitDriver: use authentication for supports check 4 years ago
Ayesh Karunaratne e3c75b3e87
Replace cascading str_replace() calls with strtr()
Replaces cascading str_replace() calls with a single strtr() call that makes it mode readable and provides a micro performance improvement.
Some instances of cascading str_replace() calls were not refactored due to the potential recurring replacement patterns.
4 years ago
Yanick Witschi ea0ce9dd7d Merge branch 'master' into filter-packages 4 years ago
Jordi Boggiano e76fc2dc39
Avoid blocking when guessing default branch name, fixes #9001 4 years ago
Nils Adermann edd2aa27db
Add missing isVerbose argument to problem formatting call 4 years ago
Jordi Boggiano 7a37e78a30
Speed up installer tests by avoiding lots of bootstrapping and git processes 4 years ago
Jordi Boggiano 6349764c2d
Fix root package handling of default-branch 4 years ago
Jordi Boggiano 923f198a1f
Fix default-branch attribute on package files, and add it to schema 4 years ago
Jordi Boggiano 6f0e5996de
Treat default branch name as a non-feature-branch no matter what it is called 4 years ago
Jordi Boggiano 4682efcf77
Support also default_branch flag in cached versions 4 years ago
Jordi Boggiano 52afa5ef16
Fix handling of default branches 4 years ago
Jordi Boggiano f70d527f4f
Fix git tests 4 years ago
Jordi Boggiano ce368f8269
Store default branch info inside metadata 4 years ago
Jordi Boggiano 04381c70fe
Merge branch '1.10' 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
Thomas Lamy 722bbce72f Merge remote-tracking branch 'upstream/master' into OutdatedNoDevOption 4 years ago
Jordi Boggiano 83c64a9d19
Reuse operation formatting logic in downloaders 4 years ago
Jordi Boggiano aaef3ff5ff
Improve error reporting when unzip fails due to race condition in unhandled Promise, refs #8988 4 years ago
Jordi Boggiano d1fedc3bd6
Restore old behavior of wiping dir contents before installing, fixes #8988 4 years ago
Jordi Boggiano 80d1b1a34c
Merge pull request #8987 from GrahamCampbell/patch-2
Marked getRootAliasesPerPackage as static
4 years ago
Jordi Boggiano 5ec6b81157
Merge pull request #8986 from GrahamCampbell/patch-1
Phpdoc tweaks
4 years ago
Jordi Boggiano c8731598cc
Merge branch '1.10' 4 years ago
Jordi Boggiano da572f1fdc
Merge remote-tracking branch 'GrahamCampbell/allow-list' into 1.10 4 years ago
Jordi Boggiano 09fc263d37
Fix status command bug 4 years ago
Graham Campbell 643852a2b0
Marked getRootAliasesPerPackage as static 4 years ago
Graham Campbell a4f4101346
Phpdoc tweaks 4 years ago
Jordi Boggiano 0d369c87bc
Merge pull request #8975 from ffraenz/pr
Composer 2: Allow plugins to override the URL before triggering the download
4 years ago
Jordi Boggiano 5aae7f4f20
Merge remote-tracking branch 'jderusse/optimize-compile' 4 years ago
Jordi Boggiano aea074308c
Update batching to install plugin deps before the plugin (alone an own batch) 4 years ago
Jordi Boggiano 085fe4e7e5
Add --no-progress support and a few more fixes 4 years ago
Jordi Boggiano 9c78eda7db
Fix FileDownloader::update impl to handle promises 4 years ago
Jordi Boggiano 87a0fc5506
Execute operations in batches to make sure plugins install in the expected order 4 years ago
Jordi Boggiano 9f380d606c
Add basic progress bar capability while waiting for jobs to complete 4 years ago
Jordi Boggiano b1e15c7725
Fix a couple async bugs 4 years ago
Jordi Boggiano 3af617efe8
Parallelize zip extraction using async unzip processes 4 years ago
Jordi Boggiano 8f6e82f562
Add support for aborting running promises cleanly 4 years ago
Jordi Boggiano 0dad963cd8
Add executeAsync to ProcessExecutor and allow Loop class to wait on it in addition to HttpDownloader 4 years ago
Jordi Boggiano d5286d0cb8
Add a way for FileDownloader subclasses to add paths to the cleanup stage 4 years ago
Jordi Boggiano a797ee1322
Fix inline aliases not being loaded when extracting dev requirements, fixes #8954 4 years ago
Jordi Boggiano da6c0635d2
Merge pull request #8980 from stucki/discard-using-git-clean
Discard changes is incomplete if Git project has additional folders
4 years ago
Jonas Drieghe 8da2811dc3
Add new summary format for licenses (#8973)
* Add new summary format to render the number of dependencies for each used license

* Array dereferencing wasn't available on php 5.3

* Add summary format to documentation
4 years ago
Michael Chekin 6d9bf42655
Additional Util\RemoteFileSystem tests (#8960)
* RemoteFilesystemTest: simplifying some mock expectations calls

- will($this->returnValue()) to willReturn()
- will($this->returnCallBack()) to willReturnCallback()

* RemoteFilesystemTest: extracting identical mocks for IOInterface into a separate getIOInterfaceMock() method

* RemoteFilesystemTest: converting protected helper methods to private.

* RemoteFilesystemTest: moving getConfigMock() private method after the public methods (with other private methods)

* adding RemoteFileSystemTest::testCopyWithRetryAuthFailureFalse() unit test.

* Allow optional injecting of AuthHelper into RemoteFilesystem constructor.

* adding RemoteFileSystemTest::testCopyWithSuccessOnRetry() unit test.

* using backward compatible @expectedException in RemoteFilesystemTest.php

* RemoteFilesystemTest: extracting RemoteFilesystem with mocked method creation into a separate method.

* RemoteFilesystemTest: extracting AuthHelper with mocked method creation into a separate method.
4 years ago
Fränz Friederes 5c13c97428
Implement type and context properties in PreFileDownloadEvent 4 years ago
Michael Stucki ae59047166 Clean Git repos during discard 4 years ago
Fränz Friederes 907367ff43
Fix PHPDoc issue 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
Fränz Friederes 13bdf8553a
Add setProcessedUrl method to PreFileDownloadEvent 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 2fa58ccf96
Reduce amount of packages loaded by avoiding extensions of the constraint beyond the root constraint 4 years ago
Jordi Boggiano 4b9b499ce5
Fix issue loading aliases and fix markPackageNameForLoading when called twice in a row for same package it would overwrite the constraint the second time 4 years ago
Jordi Boggiano f2befc46c9
Avoid storing duplicate packages when loading the same package twice 4 years ago
Jordi Boggiano 67a88880ec
Get rid of EmptyConstraint 4 years ago
Jordi Boggiano cb19347031
Update to latest master 4 years ago
Yanick Witschi b6c436598b
Updated to latest semver intervals 4 years ago
Yanick Witschi 6ef47baca1
Added a todo for package dupes 4 years ago
Yanick Witschi 014e9d5dd1
Fixed last remaining pool builder test 4 years ago
Yanick Witschi 5097ed6480
Fixed another test 4 years ago
Yanick Witschi 5a835db24d
Fixed another partial update test 4 years ago
Yanick Witschi 7be24dccd9
Fixed some of the partial update tests 4 years ago
Yanick Witschi 225a6a0a82
Improved variable naming 4 years ago
Yanick Witschi 0955d38374
Simplify package loading 4 years ago
Yanick Witschi 779b56ab2b
Fixed psalm annotations 4 years ago
Yanick Witschi b00291cf21
CS 4 years ago
Yanick Witschi 00500f83c0
Using the current subset branch of @Seldaek to fix subset tests 4 years ago
Yanick Witschi 26877285ad
Filter duplicate packages 4 years ago
Yanick Witschi bde9502473
Made the constraint argument in Link mandatory 4 years ago
Yanick Witschi 2427bef238
Typo 4 years ago
Yanick Witschi bca88bdd4b
Fixed PoolBuilder running endlessly when packages do not exist 4 years ago
Yanick Witschi b87fc5bbfd
Added more poolbuilder test 4 years ago
Yanick Witschi d78c37edd2
Cleanup and added some more improvements, tests still failing 4 years ago
Nils Adermann 5dd4b456b9
PoolBuilder: Do not load any alternatives to pkgs replaced by fixed pkg 4 years ago
Nils Adermann bb4cabc0b9
PoolBuilder: Avoid loading any alternatives to fixed packages 4 years ago
Yanick Witschi 1c8865a5d1
Comment 4 years ago
Yanick Witschi 10555ecff3
Make sure there's always a constraint 4 years ago
Yanick Witschi 912aecb666
Removed name constraints 4 years ago
Yanick Witschi af7feade8f
POC 4 years ago
Thomas Lamy caa5545478 #8945 Add "--no-dev" to outdated/show commands 4 years ago
Jordi Boggiano 9d5051faac
Merge branch '1.10' 4 years ago
Jordi Boggiano 6630519882
Fix #8298 for COMPOSER_DEV_MODE 4 years ago
Jordi Boggiano 29ec10d95c
Fix output formatting 4 years ago
Nils Adermann f15b9c258e
Merge pull request #8949 from Seldaek/cleanups
Cleanups / docblocks
4 years ago
Ayesh Karunaratne 71ddc487fe
Platform Check: Add a special case for `zend-opcache`.
Ref #8946

The platform-check feature maps `ext-X` to `extension_loaded('X')` calls.
While most of the extensions can be tested this way, the `zend-opcache`
extension requires `zend opcache` to be probed instead of the `zend-opcache`
name.

This commit adds a special case for `zend-opcache` to use the correct name
in `extension_loaded()` calls in generated `platform_check.php` file.
4 years ago
Jordi Boggiano c9571f90b4
Run phpstan with regular output and then run again to cs2pr if there was an error, to keep usable output in CI logs 4 years ago
Jordi Boggiano a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks 4 years ago
Jordi Boggiano 5761228068
Make installer classes forward promises from downloaders to InstallationManager 4 years ago
Jordi Boggiano 816d8e9d1b
Fix phpstan error 4 years ago
Jordi Boggiano 90bd351b8b
Allow downgrades to go through even though the target dir for archive extraction exists 4 years ago
Jordi Boggiano 63041fbf50
Add missing class 4 years ago
Jordi Boggiano 02059d96e7
Fail early if an archive extraction is going to fail at install/update stage to avoid leaving the vendor dir in a half up to date state 4 years ago
Jordi Boggiano 396ad87fd0
Add handling of ctrl-C on windows for php 7.4+ 4 years ago
Jordi Boggiano a66a939b76
Merge pull request #8937 from Seldaek/optim-rules
Optimize rule creation for alias packages
4 years ago
Jordi Boggiano 5ef7765cbd
Merge pull request #8923 from staabm/glob-classmap
Autoload-Generator: support glob patterns in classmaps
4 years ago
Jordi Boggiano ccea1b95a8
Fix pretty constraint for --with overrides 4 years ago
Jordi Boggiano 7507b87fb3
Remove stray var_dump 4 years ago
Jordi Boggiano 8d3ec0f718
Do not reverse sorted packages, fixes #8320 4 years ago
Jordi Boggiano 1055be7936
Fix unfixing of packages when a replacer gets unfixed before a replacee, refs #8882 4 years ago
Jordi Boggiano 4d75d524f1
Fix class name case, refs #8939 4 years ago
Graham Campbell 462dc5a933
Fix for HHVM 3 4 years ago
Nils Adermann 86e79fcce3
Merge pull request #8938 from Seldaek/drop-dead-code
Remove some dead code from RuleSetGenerator
4 years ago
Jordi Boggiano 718021724c
Deduplicate more content in complex problem output 4 years ago
Jordi Boggiano 9bd255d8f1
Remove some dead code from RuleSetGenerator 4 years ago
Jordi Boggiano 5a4709c3d6
Optimize rule creation for alias packages
This mainly benefits projects running updates with minimum-stability: dev
4 years ago
Jordi Boggiano 8a7f3a9a09
Avoid rendering problem output for dev-master aliases which is useless 4 years ago
Jordi Boggiano 5e5f9f8142
Remove unused RULE_INTERNAL_ALLOW_UPDATE 4 years ago
Jordi Boggiano c8efb50d39
Change the single requirement ignore from --ignore-platform-reqs=xx to --ignore-platform-req=xx to avoid BC issues 4 years ago
Jordi Boggiano 2ddf4346ef
Improve error reporting for RULE_PACKAGE_ALIAS 4 years ago
Jordi Boggiano 0ea9eafcaf
Add rules for aliased packages when an alias is added, fixes #8902 4 years ago
Jordi Boggiano c0f5c13516
RuleSetGenerator instance does not need to be kept around anymore 4 years ago
Jordi Boggiano 1e08097a17
Fix phpstan warning 4 years ago
Jordi Boggiano a9affa8413
Add missing use statement 4 years ago
Jordi Boggiano e85da00dff
Add a way to ignore only some packages in --ignore-platform-reqs, and make the platform check ignore those packages which were ignored as requirements, fixes #8861 4 years ago
Jordi Boggiano 21e708f2c4
Remove upper bound PHP version checks from platform-check as there is not enough value added and it risks causing issues 4 years ago
Jérémy Derussé 95e6e16b78
Use Semver compiled constraints 4 years ago
Markus Staab 6a0e02db1b Autoload-Generator: support glob patterns in classmaps 4 years ago
Jordi Boggiano a07f9ffba9
Catch SIGINT/Ctrl+C during installs and run cleanups on all packages before exiting 4 years ago
Jordi Boggiano 385655f02a
Mark temp files as such for clarity in case any gets left over 4 years ago
Jordi Boggiano acf2b15982
Merge branch '1.10' 4 years ago
azjezz 30f994e424 fix deprecations in PHP 8 4 years ago
Jordi Boggiano c7fb15faf4
Update to MatchAllConstraint 4 years ago
Jordi Boggiano 45d3e133a4
Avoid checking for unbounded constraints in platform checks 4 years ago
Jordi Boggiano 62d0443e07
Avoid checking for readline in non-CLI contexts, fixes #8909 4 years ago
Jordi Boggiano d42e12c514
Make config non optional, fixes #8896 4 years ago
Jordi Boggiano b27c4b2472
Merge branch '1.10' 4 years ago
Timo Webler 541692bbfe
Use "getInitialWorkingDirectory" instead of "getWorkingDirectory"
Follow-up 8d24b61bef
4 years ago
Jordi Boggiano 1d2df5ef55
Add output to remove/require command to highlight the fact it is running an update command, refs #8910 4 years ago
Jordi Boggiano af6444353f
Refactor hint generation and whitespace handling in SolverProblemsException 4 years ago
Jordi Boggiano 98e5f81a5f
Fix detection of fixed package problems to include more cases, fixes #8910 4 years ago
Jordi Boggiano beded906ba
Merge branch '1.10' 4 years ago
Jean-Michel DELEHAYE 42fc372e52
Add function_exists() for 'pcntl_signal' 4 years ago
Matěj Kmínek a074819a51
Add support for gitlab deploy token (#8867)
* feat: Added ability to work with GitLab deploy tokens: https://docs.gitlab.com/ee/user/project/deploy_tokens/

Deploy tokens can be specified two ways:
1) GIT CONFIG:
git config --add gitlab.deploytoken.user USERNAME && git config --add gitlab.deploytoken.token TOKEN
2) Auth.json:
"gitlab-token": {
    "gitlab.com": {"username": "USERNAME", "token": "TOKEN"}
}
4 years ago
Jordi Boggiano 1ef352751c
Fix display issue in create-project when installing dev-master 4 years ago
Jordi Boggiano ba3df8faea
Merge pull request #8843 from FIDATA/feature/archive-name
Add (default) base name of archive into composer.json
4 years ago
Jordi Boggiano dd0c8b4278
Merge pull request #8723 from helhum/fix-package-sorting
Fix package sorting
4 years ago
Jordi Boggiano 3134466b42
Merge branch '1.10' 4 years ago
Jordi Boggiano 4ce492d01d
Fix detection of gitlab URLs, fixes #8402, closes #8868 4 years ago
Nils Adermann 5d5515348a
Merge pull request #8860 from Seldaek/update-with
Add --with to update command to allow downgrading to a specific version / applying custom temporary constraints
4 years ago
Nils Adermann ff0717ad66
Merge pull request #8859 from Seldaek/deduplicate-problems
Deduplicate require/conflict rules which are the same but for different versions of the same package
4 years ago
Nils Adermann 678abdbc9f
Merge pull request #8873 from Seldaek/version_selector_platform
Use all PlatformRepo packages in VersionSelector checks
4 years ago
Jordi Boggiano 1d68e85433
Fix usage 4 years ago
Jordi Boggiano ef3797cdd6
Cache successful requests to make sure subsequent loadPackages calls do not do the same requests for nothing 4 years ago
Jordi Boggiano 8a2dd1baef
Adjust all usages of VersionSelector to the new API 4 years ago
Jordi Boggiano 419567ba6d
Update VersionSelector to take all platform requirements into account when selecting packages 4 years ago
Jordi Boggiano b11f43f59e
Merge remote-tracking branch 'origin/1.10' 4 years ago
Jordi Boggiano 92aed041e4
Make the VersionSelector take Composer API/Runtime versions into account, refs getsentry/sentry-php#1008 4 years ago
Markus Staab 11930001fb
Added phpdoc types for PoolBuilder (#8862) 4 years ago
Ayesh Karunaratne aa20413990
Improve regex in \Composer\Downloader\SvnDownloader::getCommitLogs() by removing unnecessary greedy operator 4 years ago
Ayesh Karunaratne d4c8478df5
Improve regex in \Composer\Repository\ComposerRepository::fetchFile() by removing unnecessary greedy operator 4 years ago
Helmut Hummel 7c891701e6 Fix package sorting
PackageSorter weighs the importance of a package
by counting how many times it is required by other packages.
This works by calculating the weight for each package name.

However currently the package index of the package array
is currently passed the weigh function, which basically
disables package sorting.

The reason for that is, that a package repository previously
returned the package list as associative array with  package name as keys,
but currently just as an array with integer keys.

Therefore we must extract the package name from the package
before passing it to the weigh function.
4 years ago
Jordi Boggiano 1d077ede70
Merge branch '1.10' 4 years ago
Jordi Boggiano bfe71fb952
Fix support for --self --name-only, fixes #8844 4 years ago
Jordi Boggiano 4ce3836f51
Fix creation of a php: dir when running create-project, fixes #8849 4 years ago
Jordi Boggiano 7f308d986e
Add --with to update command to allow downgrading to a specific version/applying custom temporary constraints, fixes #8756 4 years ago
Jordi Boggiano 3a64acb53e
Make sure versions are ordered also in the satisfied by package lists 4 years ago
Jordi Boggiano 56a11b9c2c
Deduplicate require/conflict rules which are the same but for different versions of the same package, fixes #8851 4 years ago
Jordi Boggiano 56811b4c8f
Exclude platform require/provides from InstalledVersions as concrete ones are also not listed 4 years ago
Jordi Boggiano 557fb873ee
Add a way to retrieve the Loop instance from Composer to be able to wait on promises to integrate things 4 years ago
Jordi Boggiano 3c593b0d12
Remove duplicate use statement 4 years ago
Jordi Boggiano 74a63b4d6b
Merge branch '1.10' 4 years ago
Jordi Boggiano 81bf47ffa2
Use fully qualified calls in hot classes 4 years ago
Alessandro Lai ff05150c4e Add composer-runtime-api version constant 4 years ago
Basil Peace 6140897d08 feat: add archive.name config option 4 years ago
Alessandro Lai 270c7c3262
Backport validation support for composer-runtime-api (#8842)
Fixes #8841
4 years ago
Nils Adermann 56edd53046 Remove unnecessary implementation of interface method in abstract class 4 years ago
Jordi Boggiano a63913c245
Merge pull request #8836 from kbacia7/master
close #8784, Added --locked option to composer show command. Displaying locked packages with --all option
4 years ago
Kamil Bacia 0779308076
close #8784, Added --locked option to composer show command. Displaying locked packages with --all option 4 years ago
Nils Adermann 994a5b41c2
Provide default impl for abstract method in interface for PHP < 5.3.9 (#8837) 4 years ago
Jordi Boggiano d173af2d7a
Fix check-platform-reqs command to take into account provide/replace from the root package 4 years ago
Jordi Boggiano 6a6ea6057f
Handle provider/replacer packages and avoid checking extensions which are provided by packages, refs #8546 4 years ago
Jordi Boggiano d494df61ff
Make sure platform-check returns a non-0 exit code if it fails 4 years ago
Jordi Boggiano 755a73baa9
Only check for pcntl on cli SAPI, fixes #8828 4 years ago
PirxDanford 3a7ea25289
Introduce --no-install option for the update, require and remove commands
Closes #8669, fixes #8551

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
4 years ago
effulgentsia 46efcefefa
Added --json and --merge options to ConfigCommand (#8779) 4 years ago
Jordi Boggiano 1d4185b844
Recommend ocramius/package-versions fork if needed to solve dependencies 4 years ago
Jordi Boggiano 34801239f1
Tweak problem wording slightly 4 years ago
Jordi Boggiano cdc6a87e8d
Fix docblock 4 years ago
Jordi Boggiano 9b8694bc0b
Show suggestions from root package in suggest, and lists them in count only on first install of a project, fixes #8805 4 years ago
Jordi Boggiano 6529fabb24
Add isFresh to InstalledRepositoryInterface and make sure local repo is always an InstalledRepositoryInterface 4 years ago
Jordi Boggiano fa14cd1353
Show number of additional suggestions when not using --all, fixes #8788 4 years ago
Jordi Boggiano d6a9d78309
Merge pull request #8810 from heddn/8809_expand_context_post_file_download
#8809: expand context for post file download event
4 years ago
Jordi Boggiano 7049bbb714
Switch require_once to require for autoload_static as the once variant seems unnecessary 4 years ago
Jordi Boggiano c2f77d80bd
Remove usage of 5.6+ constant 4 years ago
Jordi Boggiano 1000d49145
Fix error reporting when the root version changed since the last update, and does not match circular deps in lock file anymore 4 years ago
Jordi Boggiano 0ab48a1773
Add composer-runtime-api platform package 4 years ago