1459 Commits (0db443ba5f3a0a19081f7944ba988a32db2e7490)

Author SHA1 Message Date
Jordi Boggiano cb1f3899bb
Revert "Store default branch info inside metadata"
This reverts commit 472a62152d.
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 80d1b1a34c
Merge pull request #8987 from GrahamCampbell/patch-2
Marked getRootAliasesPerPackage as static
4 years ago
Jordi Boggiano c8731598cc
Merge branch '1.10' 4 years ago
Graham Campbell 643852a2b0
Marked getRootAliasesPerPackage as static 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 a797ee1322
Fix inline aliases not being loaded when extracting dev requirements, fixes #8954 4 years ago
Fränz Friederes 5c13c97428
Implement type and context properties in PreFileDownloadEvent 4 years ago
Fränz Friederes 13bdf8553a
Add setProcessedUrl method to PreFileDownloadEvent 4 years ago
Graham Campbell fa799970ad Replace whitelist with allow list 4 years ago
Jordi Boggiano a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks 4 years ago
Jérémy Derussé 95e6e16b78
Use Semver compiled constraints 4 years ago
azjezz 30f994e424 fix deprecations in PHP 8 4 years ago
Jordi Boggiano c7fb15faf4
Update to MatchAllConstraint 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
Ayesh Karunaratne d4c8478df5
Improve regex in \Composer\Repository\ComposerRepository::fetchFile() by removing unnecessary greedy operator 4 years ago
Jordi Boggiano 56811b4c8f
Exclude platform require/provides from InstalledVersions as concrete ones are also not listed 4 years ago
Jordi Boggiano 3c593b0d12
Remove duplicate use statement 4 years ago
Jordi Boggiano 74a63b4d6b
Merge branch '1.10' 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 6529fabb24
Add isFresh to InstalledRepositoryInterface and make sure local repo is always an InstalledRepositoryInterface 4 years ago
Jordi Boggiano c2f77d80bd
Remove usage of 5.6+ constant 4 years ago
Jordi Boggiano 0ab48a1773
Add composer-runtime-api platform package 4 years ago
Jordi Boggiano 0d1922dc27
Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 4 years ago
Pierre Grimaud a42c6ceff3 Fix typos 4 years ago
Jordi Boggiano 424c08d6b2
Fix bug loading ~dev in some circumstances 4 years ago
Jordi Boggiano 5b54a93751
Fix phpstan build 4 years ago
Jordi Boggiano 44a4429978
Remove PEAR installer/downloader/repos/..., fixes #8778 4 years ago
Jordi Boggiano 6bed9d8f13
Implement count and search correctly in FilterRepository 4 years ago
Jordi Boggiano 62fda2ed85
Reorg ComposerRepository to fix tests 4 years ago
Jordi Boggiano 048781c268
Fix whatProvides function declaration 4 years ago
Jordi Boggiano 4ea6b1ef55
Make all params non-optional 4 years ago
Ayesh Karunaratne fdb35a6a06
Fix \Composer\Installer\PackageEvent::__construct() and \Composer\Repository\ComposerRepository::isVersionAcceptable() required arguments used after optional, which is deprecated in PHP 8.0
1. `Deprecated: Required parameter $name follows optional parameter $constraint in src\Composer\Repository\ComposerRepository.php on line 745`

2. `Deprecated: Required parameter $operation follows optional parameter $operations in src\Composer\Installer\PackageEvent.php on line 73`

Optional parameters with a type declared, and a default value of `null` is excepted from this deprecation. See https://php.watch/versions/8.0/deprecate-required-param-after-optional. This is the case in `ComposerRepository::isVersionAcceptable`, which still has two optional parameters as first two parameters, but this will not raise a deprecation notice.
4 years ago
Jordi Boggiano a7ad186c89
Return early in case a call to the wrapped repo is unnecessary 4 years ago
Jordi Boggiano b6bad4eef6
Add options to configure repository priorities 4 years ago
Jordi Boggiano 59c831c2f8
Add docs to loadPackages 4 years ago
Jordi Boggiano aa6be02c64
Allow COMPOSER_DISABLE_NETWORK to work with GitHubDriver by doing a cache priming pass first 4 years ago
Jordi Boggiano a695f686c3
Add some docblocks and make sure RepositorySet/PoolBuilder accept regular rootAliases and not pre-normalized ones 4 years ago
Markus Staab 593d5abf27
use more precise phpstan/psam return-types (#8744) 4 years ago
Markus Staab c30925e68d
extracted `VersionParser::DEV_MASTER_ALIAS` (#8742) 4 years ago
Adam Žurek 25cd2382cb
Raise phpstan level to 1 (#8027) 4 years ago
Jordi Boggiano d34ea60c48
canonicalize providers api url 4 years ago
Jordi Boggiano 87757de6bc
Merge branch '2.0' 4 years ago
Jordi Boggiano 1c73f078f7
Remove repository field from getProviders result 4 years ago
Jordi Boggiano 379baa1560
Merge pull request #8717 from naderman/t/pool-builder-allow-list
Move processing of partial update argument list into the pool builder
4 years ago
Nils Adermann c270d3cfa6 PoolBuilder: make io non-nullable, NullIO can be used instead 4 years ago
Jordi Boggiano 6e45a53e76
Add support for relative paths in handling of install-path for the installed.json 4 years ago
Nils Adermann 01fe92905a The update allow list is now generated while building the pool
This reduces code complexity while making partial updates more
predictable. This also allows composer require to successfully run a
partial update for a new package with transitive dependency updates.
4 years ago
Jordi Boggiano 7e679656a4
Keep absolute path repos symlinks absolute, fixes #8700 4 years ago
Jordi Boggiano c2d0fed06b
Tweak lock repo name 4 years ago
Jordi Boggiano e15f7d6bb7
Merge branch 'master' into 2.0 4 years ago
Jordi Boggiano 08cee4c3e9
Implement getProviders equally on all repos 4 years ago
Nils Adermann ee8df484c4 Separate createPool and createPoolWithAllPackages, fix test description 4 years ago
Nils Adermann 281d8930ff For dev extraction skip pool building, we already have a working package set
Also reduce getProviders back to just providers, and add some todos
4 years ago
Nils Adermann 1f467046d7 Implement getProviders on reposet for all repo types and add replacers
This way errors during require dev extraction make more sense
4 years ago
Jordi Boggiano 9c84f4d79f
Make sure InstalledRepository itself can be added too but requires allowing installed repos in reposet 4 years ago
Jordi Boggiano ba04a46cae
Fix 5.3 issue 4 years ago
Jordi Boggiano d13ce20b6e
Fix handling of composer repos with v1 version_normalized format 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 d63eb8179e
Merge branch 'master' into 2.0 4 years ago
Jordi Boggiano 7a270955f5
Fix issues handling branch names with pipes in them 4 years ago
Jordi Boggiano 80875e896d
Merge branch 'master' into 2.0 4 years ago
Jordi Boggiano 05737a46fb
Improve funding info parsing 4 years ago
Jordi Boggiano 9cab8c10cc
Merge branch 'master' into 2.0 4 years ago
Jordi Boggiano c4f19e51d8
Rework the funding info parsing to avoid requiring graphql permissions 4 years ago
Jordi Boggiano a2eb0bab12
Abort loop correctly when package is a match 4 years ago
Jordi Boggiano 5b41b78809
Optimize findPackagesWithReplacersAndProviders to avoid multiple loops over replace/provide links 4 years ago
Jordi Boggiano 20e4cc3b6f
Fix finding replacers/providers to check constraints correctly 4 years ago
Jordi Boggiano 2e82e34fe0
Merge branch 'master' into 2.0 4 years ago
Jordi Boggiano 4f59162827
Fix class name of caught exception 4 years ago
Jordi Boggiano 0ad322e51f
Fix tests 4 years ago
Jordi Boggiano bc002ae1fb
Merge branch 'master' into 2.0 4 years ago
Jordi Boggiano 8dc055bec7
Fix 5.3 syntax 4 years ago
Jordi Boggiano f171d1fd89
Avoid requiring auth for the funding API access 4 years ago
Jordi Boggiano b033a2ae81
Retrieve funding info from github into composer.json if not declared there 4 years ago
Jordi Boggiano 71005091f0
Fix invalid access to private prop 4 years ago
Jordi Boggiano 2d8a8ed7e3
Add InstalledRepository to clean up some concepts and usages, remove BaseRepository 4 years ago
Jordi Boggiano f35cd8948a
Minor refactoring of RootPackageRepo 4 years ago
Jordi Boggiano 835a91532d
Add PRE_POOL_CREATE event, fixes #8348 4 years ago
Jordi Boggiano ef249ef6b6
Add support for lib-zip platform package 4 years ago
Stephan Vock 2a564a9f36 Create project: add option to add the repository to the composer.json 4 years ago
Jordi Boggiano 2f4ea3a463
Fix show command, refactor RepositorySet constructor 4 years ago
Jordi Boggiano 38f6ae2c4e
Fix react/promise usage for v2 4 years ago
Jordi Boggiano 1e68555e0a
Sanitize URLs in getRepoName and centralize the Url sanitization process 4 years ago
Jordi Boggiano c41df325d8
Remove RepositorySet from Solver and remove getPool from RepositorySet 4 years ago
Jordi Boggiano 29efc473a1
Suggest which providers could be required to fulfill a virtual package requirement, fixes #2811 4 years ago
Jordi Boggiano 3fc7e10c5c
Improve error reporting of solver issues, refs #7779
Fixes #8525
Fixes #6513
4 years ago
Jordi Boggiano 46e35bc8d7
Fix 5.3/undef var issues 4 years ago
Jordi Boggiano 2901995fc8
Fix issue excluding unstable packages when stabilityFlags are empty 4 years ago
Jordi Boggiano 8f09f3764b
Avoid fetching non-existing files multiple times 4 years ago
Nils Adermann 0b4e8952f6 PHP5 disallows require as a function name, use requireName analog to fixPackage 5 years ago
Nils Adermann 5bdc0fc9c5 Request jobs replaced by root require / fixed package
The only type of request job remaining was "install" which is really a
root requirement. The only other kind of input for the solver is now a
set of fixed packages.

Rules have been updated to account for only two kinds of former job
reason: FIXED or ROOT_REQUIRE. The job property has always been
redundant and has been removed, since reasonData suffices.

Problem reasons are always rules, so the unnecessary wrapping in an
array has been removed.

We now only ever generate a single rule per root require or fixed
package, so there is no need for the solver to special handle disabling
"jobs" anymore, the rule can just be disabled as usual.

For consistency special handling of rules for jobs in problems has been
integrated into the rule class like all other rule reasons. As part of
this change the error message for root requirements has been improved a
bit to make it clearer where the package installation request came from.

The word job has also been removed from operations, which are called
operations, not jobs.
5 years ago
Jordi Boggiano 304753ff69
Remove callback and pass stabilities all the way instead
This allows optimizing the loading of ~dev files, and cleans up a few things
5 years ago
Jordi Boggiano e50f78043a
Try to load packages from lock file only and avoid loading other versions for pinned packages 5 years ago
Jordi Boggiano dd556f989b
Use LockArrayRepository instead of RepositoryInterface to clearly indicate which type of repo it is in some places 5 years ago
Jordi Boggiano 6c24e85e54
Merge pull request #8528 from Seldaek/repo-prio-fix
Avoid loading packages found in a higher prio repo entirely from lower prio repos
5 years ago
Jordi Boggiano f68731e663
Remove package/repo priority concept as it is enforced by the pool builder now 5 years ago
Jordi Boggiano 30b6a41035
Extract MetadataMinifier util 5 years ago
Jordi Boggiano 926afab1f4
Move loadPackages impl out of BaseRepository 5 years ago
Jordi Boggiano 47a94b3a88
Ensure packages that exist in a higher prio repo never get loaded in lower prio repos, fixes #5076 5 years ago
Jordi Boggiano 40f5806a7c
Fix ComposerRepo issue 5 years ago
Jordi Boggiano a5b178084c
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 78217e2313
Merge branch '1.9' 5 years ago
Jordi Boggiano a2dadb91bf
Return two packages in PathRepository when on a feature branch, one for feature branch and one for the source branch it came from, fixes #8498, fixes #8477 5 years ago
Jordi Boggiano a902279a5b
Merge branch '1.9' 5 years ago
Jordi Boggiano 0b767e0b83
Allow calling getProviderNames multiple times, refs #8516 5 years ago
Maximilian Bösing 3791a574a2
Provide partial packages names if available, closes #8516, fixes #8526 5 years ago
Jordi Boggiano 23359f2db6
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 2bd817acf9
Merge pull request #8444 from Toflar/remove-filters-from-pool
Removed the filters from the pool
5 years ago
Stephan Vock 731d94a2a3 VcsRepositories: mark archived repositories as abandoned 5 years ago
Stephan Vock dd2cc3e985 VcsRepository: make transport exceptions during initialize run accessible
* also display the http status code in composer failed to load a composer.json file
5 years ago
Adam Žurek 406a28708f updated phpstan to 0.12 5 years ago
Yanick Witschi d1dc367d86 Removed the filters from the pool 5 years ago
Jordi Boggiano d12c20db4b
Remove async repo interface, closes #7902 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
Cyril VERLOOP 0bd3f27693
Do not show commit signature for git log. 5 years ago
Jordi Boggiano 44cdc37c0c
Invalidate map cache when addPackage/removePackage is called 5 years ago
Michael Thessel 96af983700 Fixed map initialization 5 years ago
Michael Thessel f8010d5220 Improved hasPackage() performance 5 years ago
Jordi Boggiano 3b6d517ce0
Return 404s in ComposerRepository when network is disabled instead of failing hard 5 years ago
Nils Adermann 97ec2d7b61 Merge remote-tracking branch 'github-composer/2.0' into solve-without-installed
* github-composer/2.0: (63 commits)
  Fix PSR warnings for optimized autoloader, refs #8397, refs #8403
  Prepare 1.9.1 changelog
  Output a hint that maybe you are not in the right directory, fixes #8404
  Fix PSR warnings for optimized autoloader, refs #8397, refs #8403
  Fix tests for PSR-fix in optimized autoloader, refs #8397
  Fix tests for PSR-fix in optimized autoloader, refs #8397
  Change PSR-fix for optimized autoloader to only warn for now, refs #8397
  Fix output of dump-autoload command to avoid interfering with warnings, refs #8397
  Remove credentials from git remotes in cache and vendor dirs
  Avoid overwriting credentials with existing ones from git repos, refs #8293
  Fix github auth to try https with pwd also, fixes #8356
  Fix gitlab support for basic-auth fallback from ssh URLs
  Avoid clearing the error output during removeDirectory execution, losing git error output, fixes #8351
  Move test file parsing into try/catch block to avoid phpunit swallowing errors
  make optimized autoloader respect PSR standards
  Validate composer show with --tree and --path options set (#8390)
  Don't show root warning for docker containers
  Added phpdoc for ComposerAutoloaderInit$SHA1::getLoader() (#8393)
  Validate schema name, type and version
  Fix require command to allow working on network mounts, fixes #8231
  ...
5 years ago
Andreas Möller f7f7883a5e
Fix: Xdebug vs xdebug 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 127ba941f1
Merge pull request #8376 from aschempp/bugfix/why-replaces
Consider replaces when checking package dependents
5 years ago
Stephan Vock 73b269fade HgDriver: don't run command in non-existing directory 5 years ago
Andreas Schempp 5f202efa0b Added comment why source link check is necessary 5 years ago
Andreas Schempp 80317eb289 Remove invalid array keys 5 years ago
Andreas Schempp 20eb9e66cf Consider replaces when checking package dependents 5 years ago
Mike van Rooyen e910e06f63 Add details of the path to aid debugging 5 years ago
Mike van Rooyen 18895064ad Check that if the getUrlMatches method returns an empty value which means the path is incorrect 5 years ago
Jordi Boggiano 9e2485aa4d
Make gitlab/bitbucket driver checks case insensitive 5 years ago
Nils Adermann f5e18250e6 Merge remote-tracking branch 'github-composer/2.0' into solve-without-installed
* github-composer/2.0: (48 commits)
  Fix missing use/undefined var
  Split up steps on VCS downloaders to allow doing network operations before touching the filesystem on GitDownloader, fixes #7903
  Fix use statement
  Deduplicate findHeaderValue code
  Add install-path to the installed.json for every package, fixes #2174, closes #2424
  Remove unnecessary config from phpstan
  Make sure the directory exists and will not block installation later when downloading
  Avoid wiping the whole target package if download of the new one fails, refs #7929
  Only empty dir before actually installing packages, fixes #7929
  Improve output when installing packages
  Show best possible version in diagnose command
  Remove extra arg
  Allow path repos to point to their own source dir as install target, resulting in noop, fixes #8254
  Fix use of decodeJson
  Fix update mirrors to also update transport-options, fixes #7672
  Fix updating or URLs to include dist type and shasum, fixes #8216
  Fix origin computation
  Improve handling of non-standard ports for GitLab and GitHub installs, fixes #8173
  Load packages from the lock file for check-platform-reqs if no dependencies have been installed yet, fixes #8058
  Fix error_handler return type declaration
  ...
5 years ago
Nils Adermann f1e4ccbe1d Fix handling of reference updates and root references 5 years ago
Grey Baker b09945c3ba Allow for leading slash in path part of GitHub URLs 5 years ago
Jordi Boggiano 7d99a56332
Combine conditionals in one 5 years ago
rbairwell 550c01b471 Fixes a problem with path based repositories on PHP7.4 where an attempt is made to access null as an array 5 years ago
Jordi Boggiano bfee701f9b
Deduplicate findHeaderValue code 5 years ago
Jordi Boggiano 63da7c6b2d
Add install-path to the installed.json for every package, fixes #2174, closes #2424 5 years ago
Jordi Boggiano 3ef27cabd6
Merge pull request #7999 from Seldaek/store_dev
Store dev mode in installed.json, fixes #3008
5 years ago
Jordi Boggiano 0a152b06d7
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 0fe200d6d9
Fix origin computation 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
Jordi Boggiano 26a3e12c96
Merge pull request #7994 from aschempp/feature/zip-util
Extract the ZIP utility functions from ArtifactRepository
5 years ago
Nils Adermann 9053d74282 Merge branch '2.0' into solve-without-installed
* 2.0: (101 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 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
Jordi Boggiano 32ca426e38
Merge remote-tracking branch 'origin/1.8' 5 years ago
Rob Bast 7399638e43 fixes #8179 5 years ago
Jordi Boggiano 79a300eaac
Merge branch '1.8' 5 years ago
Jordi Boggiano fbb964888d
Merge branch '1.8' 5 years ago
pfofi 82825ccc74 Use possessive quantifiers 5 years ago
pfofi e7f02be9ff Anchor pattern 5 years ago
pfofi c751914410 Fix URL resolution for Composer repositories
Composer was unable canonicalize URLs in non-HTTP(S) Composer
repositories. For example it was not possible to use a `providers-url`
in a repository loaded via the `file://` scheme.

See also: #8115
5 years ago
Sam L 8288d2c456 Display branches and tags if verbose is specified 5 years ago
Stephan Vock e37ffb2a44 Fix: Bitbucket getChangeDate throws exception for branches containing a slash 5 years ago
Jordi Boggiano 2b421a94cb
Merge branch '1.8' 5 years ago
Elan Ruusamäe 12e683e2ee
ext-imagick: support version string from ImageMagick 6.x 5 years ago
Jordi Boggiano 0317199507
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano a186620210
Merge branch '1.8' 5 years ago
Jordi Boggiano 625bcee63a
Fix handling of warnings to incl all 4xx responses 5 years ago
Andreas Schempp a91fd20673 Return the composer.json content instead of a zip:// path 5 years ago
Jordi Boggiano 9d139cb694
Merge branch '1.8' 5 years ago
Jordi Boggiano 6bce9da8c8
Only keep track of empty references that returned a 404 5 years ago
Andreas Schempp 0d0cb53f31 Adjust Zip Util to only find the root composer.json 5 years ago
Jordi Boggiano ba1e5c213c
Merge branch '1.8' 5 years ago
Jordi Boggiano 6473dd9185
Minor improvements to VersionCacheInterface 5 years ago
Jordi Boggiano 3f5a986170
Show warning in all 400/500 responses if available, fixes #7814 5 years ago
Jordi Boggiano 5f988a34a6
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 43a43f3cdf
Merge branch '1.8' 5 years ago
Jordi Boggiano 0f36a42d61
Allow filtering of warning/info msgs by composer version 5 years ago
Jordi Boggiano ba346ef04d
Add forward compatibility for upcoming v2 installed.json format, refs #7999 5 years ago
Jordi Boggiano 60df892517
Store dev mode in installed.json, fixes #3008 5 years ago
Jordi Boggiano bdf1f7f82b
Fix loading of aliased packages in ComposerRepository when filtering by callback 5 years ago
Jordi Boggiano 2e204b0161
Remove support for the first version of the compression algo (#7906) 5 years ago
Jordi Boggiano 177f21ec5c
Fix loading of dev providers, refs #6415 5 years ago
Jordi Boggiano ff82334124
Load ~dev files as well as main provider files for new v2 protocol, fixes #6415 5 years ago
Jordi Boggiano d3873a0565
Merge branch '1.8' 5 years ago
Jordi Boggiano 61cd8664e5
Avoid creating empty bitbucket files if there was no composer.json present in the original branch/tag 5 years ago
Matthew Brown 65903aacfd Fix type issues (#7996)
* Fix type issues found by Psalm
5 years ago
Jordi Boggiano ab945a6ec1
Clean up RepositoryInterface, fixes #5464 5 years ago
Jordi Boggiano d381b3a781
Fix variable name 5 years ago
Andreas Schempp 4d85e217c3 Extract the ZIP utility functions from ArtifactRepository 5 years ago
Nils Adermann c875f538ea Make root alias behaviour consistent, add root ref handling, lock to newest metadata
root aliases during install should come from the lock file only, for
better reproducibility we don't reuse the value from update for the
following install
5 years ago
Nils Adermann 287419f6a0 Merge branch 'master' into 2.0
* master:
  Follow up to #7946 test: add solver flag to assert path execution
  Fix tests
  Make sure config command output is also output on --quiet so that warnings can be hidden, fixes #7963
  Recognize composer-plugin-api as a platform package, fixes #7951
  Quote wildcards to avoid issues in some shells, fixes #7960
  Avoid dumping null values for dist reference/shasum and source reference, fixes #7955
  Soften hard exit after revert of composer file
  Make unixy proxy code POSIX compatible
  Update aliases.md
  Same but for Problem.php
  Better error message for present but incompatible versions
  Fix inconsistent casing
  Don't do (new Foo())->bar() - not 5.3-compatible
  Support identifying the HHVM version when not running with HHVM
5 years ago
Jordi Boggiano ff246e3e85 Merge branch '1.8' 5 years ago
Jordi Boggiano e1ac0c7948 Recognize composer-plugin-api as a platform package, fixes #7951 5 years ago
Jordi Boggiano f2cc666c2c
Merge pull request #7913 from fredemmott/hhvm-version
Support identifying the HHVM version when not running with HHVM
5 years ago
Nils Adermann 728e57b9e0 Merge branch 'master' into 2.0
* master:
  Fix solver problem exceptions with unexpected contradictory "Conclusions"
  Also load config into IO if not freshly created
  Only load configuration into IO if IO is available
  Fix defaultRepos fallback does not use auth config
  Add warning/info msg when tweaking disable-tls setting to avoid confusion, fixes #7935
5 years ago
Nils Adermann fdcae616b0 Merge branch '1.8'
* 1.8:
  Fix solver problem exceptions with unexpected contradictory "Conclusions"
  Also load config into IO if not freshly created
  Only load configuration into IO if IO is available
  Fix defaultRepos fallback does not use auth config
5 years ago
Arnout Boks 82b010782d Also load config into IO if not freshly created 5 years ago
Arnout Boks e151a6c51c Only load configuration into IO if IO is available 5 years ago
Arnout Boks d1ce9f6246 Fix defaultRepos fallback does not use auth config
When a full 'composer' cannot be constructed (because there is no
local composer.json and no global composer.json), some commands
(e.g. `show -a`) fall back to the default repositories from the
`$COMPOSER_HOME/config.json` file. Without this fix, any auth
configuration from `$COMPOSER_HOME/auth.json` is not used for
these repositories in such a fallback scenario.

Steps to reproduce:

* Configure a password-protected composer repository in
  `$COMPOSER_HOME/config.json`.
* Configure valid credentials for that repository in
  `$COMPOSER_HOME/auth.json`.
* Make sure there is no file `$COMPOSER_HOME/composer.json`.
* Ensure the current working directory has no `composer.json`.
* Run `composer show -a some/package`.

Expected: Information about `some/package` is shown without
needing to enter credentials.

Actual: A prompt "Authentication required" is shown for the
private repository. When running the same command in a dir
that has a `composer.json`, or when `$COMPOSER_HOME/composer.json`
exists, things work as expected.
5 years ago
Jordi Boggiano 9c32808782 Merge branch 'master' into 2.0 5 years ago
Fred Emmott 1b196720bf
Support identifying the HHVM version when not running with HHVM
hhvm-nightly (and the next release) are no longer able to execute
Composer. Support executing Composer with PHP to install dependencies
for hack projects.

The goal is for this to be temporary, until Hack identifies a new
package manager, given that Composer does not aim to be a multi-language
package manager.

fixes #7734
5 years ago
Jordi Boggiano f42d4d9ede Merge branch '1.8' 5 years ago
Jordi Boggiano 585535a01d Fix platform package regex 5 years ago
Jordi Boggiano 4517c00d40 Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 79af9d45af Merge branch '1.8' 5 years ago
Jordi Boggiano acea4a4d4d Warn on invalid package name or require/provide/.., fixes #7874 5 years ago
Jordi Boggiano 11bfe9970f
Merge pull request #7912 from kathyoungaligent/feature/no-api-config
Feature/no api config
6 years ago
Kath Young fbb9d20c33 Adjusted config name to be more descriptive, added documentation 6 years ago
Jordi Boggiano b89720b52a Merge branch 'master' into 2.0 6 years ago
Jordi Boggiano 02ceb74151 Tweak --no-cache option to be available globally and to not break VCS drivers relying on it, refs #7880, refs #6650 6 years ago
Kath Young 3d1e0e79cc Allow for no-api for Github to be a composer configuration as well as repo specific 6 years ago
Jordi Boggiano 37550ce44b Add support for new minified format 6 years ago
Jordi Boggiano bb2f64c7bc Remove ability to override the entire HttpDownloader instance in PRE_FILE_DOWNLOAD events 6 years ago
Jordi Boggiano 3dfcae99a9 Add parallel download capability to FileDownloader and derivatives 6 years ago
Jordi Boggiano 0f2f950cb6 Add available-packages key for new repo format, and many consistency tweaks/fixes across various repo formats 6 years ago
Jordi Boggiano c97b7a9be5 Fix implementation of filterPackages 6 years ago
Jordi Boggiano fd5c5ff6bc Fix implementation of whatProvides for older provider-only repos 6 years ago
Jordi Boggiano 4b7658a2a8 Small tweaks and make sure composer fails properly in a plane 6 years ago
Jordi Boggiano a5d5270a7e Make sure other providers of a name are never loaded 6 years ago
Jordi Boggiano b47330adf1 Refactor ComposerRepository to work with combined repos having lazy providers and partial packages 6 years ago
Jordi Boggiano 00de0f5854 Fix 5.3 support 6 years ago
Jordi Boggiano fc03ab9bba Add COMPOSER_DISABLE_NETWORK env var for debugging 6 years ago
Jordi Boggiano e8c6948770 Deduplicate link instances between versions of a given package 6 years ago
Jordi Boggiano e753bf08b1 Minor tweaks 6 years ago
Jordi Boggiano 0961e16795 Add support for new metadata-url repo attribute 6 years ago
Jordi Boggiano ed65625126 Handle custom http options cleaner in ComposerRepo 6 years ago
Jordi Boggiano 788a822b24 Add some phpdocs 6 years ago
Jordi Boggiano 4a8a1cb0c9 Fix PHP 5.3 support 6 years ago
Jordi Boggiano 655a784fac Fix findPackage(s) implementation 6 years ago
Jordi Boggiano 346de47af2 Small fixes 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
meyerbaptiste 5ce5560040
Fix support for imagemagick <3.3, refs #7762 6 years ago
Jordi Boggiano 489e0d4b12 Add support for imagemagick <3.3, refs #7762 6 years ago
Elan Ruusamäe f9234222d1 add lib-imagick to show -p output (#7762) 6 years ago
Jordi Boggiano 2e0f31106a Merge remote-tracking branch 'origin/master' into 2.0 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
Raffael Comi 3c543b2752 Report "same as actual" version if override package matches actual 6 years ago
Jordi Boggiano 9e6a0bff71
Merge pull request #7658 from fooman/fix-non-zip-file-with-zip-ext
Fix regression for artifact repository
6 years ago
Jordi Boggiano 359d1318f2
Merge pull request #7703 from glaubinix/t/composer-version-cache
Vcs Repository: add option to cache/reuse entire versions
6 years ago
Jordi Boggiano 11752864eb
Merge pull request #7735 from glaubinix/t/bitbucket-v1-API-deprecation
Bitbucket: switch to v2 API
6 years ago
Stephan Vock 105477218d VcsRepository: fix undefined index notice in preProcess 6 years ago
Stephan Vock 23d37eebe6 Fix: undefined index name in VcsRepository 6 years ago
Stephan Vock 819f487b38 Bitbucket: switch to v2 API 6 years ago
Stephan Vock 5f2eefb49b Vcs Repository: add option to cache/reuse entire versions 6 years ago
Kristof Ringleff, Fooman 2ed573b22d Combine open zip call with conditional 6 years ago