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
5 years ago
Jordi Boggiano
44a4429978
Remove PEAR installer/downloader/repos/..., fixes #8778
5 years ago
Jordi Boggiano
6bed9d8f13
Implement count and search correctly in FilterRepository
5 years ago
Jordi Boggiano
62fda2ed85
Reorg ComposerRepository to fix tests
5 years ago
Jordi Boggiano
048781c268
Fix whatProvides function declaration
5 years ago
Jordi Boggiano
4ea6b1ef55
Make all params non-optional
5 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.
5 years ago
Jordi Boggiano
a7ad186c89
Return early in case a call to the wrapped repo is unnecessary
5 years ago
Jordi Boggiano
b6bad4eef6
Add options to configure repository priorities
5 years ago
Jordi Boggiano
59c831c2f8
Add docs to loadPackages
5 years ago
Jordi Boggiano
aa6be02c64
Allow COMPOSER_DISABLE_NETWORK to work with GitHubDriver by doing a cache priming pass first
5 years ago
Jordi Boggiano
a695f686c3
Add some docblocks and make sure RepositorySet/PoolBuilder accept regular rootAliases and not pre-normalized ones
5 years ago
Markus Staab
593d5abf27
use more precise phpstan/psam return-types ( #8744 )
5 years ago
Markus Staab
c30925e68d
extracted `VersionParser::DEV_MASTER_ALIAS` ( #8742 )
5 years ago
Adam Žurek
25cd2382cb
Raise phpstan level to 1 ( #8027 )
5 years ago
Jordi Boggiano
d34ea60c48
canonicalize providers api url
5 years ago
Jordi Boggiano
87757de6bc
Merge branch '2.0'
5 years ago
Jordi Boggiano
1c73f078f7
Remove repository field from getProviders result
5 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
5 years ago
Nils Adermann
c270d3cfa6
PoolBuilder: make io non-nullable, NullIO can be used instead
5 years ago
Jordi Boggiano
6e45a53e76
Add support for relative paths in handling of install-path for the installed.json
5 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.
5 years ago
Jordi Boggiano
7e679656a4
Keep absolute path repos symlinks absolute, fixes #8700
5 years ago
Jordi Boggiano
c2d0fed06b
Tweak lock repo name
5 years ago
Jordi Boggiano
e15f7d6bb7
Merge branch 'master' into 2.0
5 years ago
Jordi Boggiano
08cee4c3e9
Implement getProviders equally on all repos
5 years ago
Nils Adermann
ee8df484c4
Separate createPool and createPoolWithAllPackages, fix test description
5 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
5 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
5 years ago
Jordi Boggiano
9c84f4d79f
Make sure InstalledRepository itself can be added too but requires allowing installed repos in reposet
5 years ago
Jordi Boggiano
ba04a46cae
Fix 5.3 issue
5 years ago
Jordi Boggiano
d13ce20b6e
Fix handling of composer repos with v1 version_normalized format
5 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
5 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
5 years ago
Stephan
402c64c271
Update src/Composer/Repository/Vcs/GitLabDriver.php
...
Co-Authored-By: Jordi Boggiano <j.boggiano@seld.be>
5 years ago
Stephan Vock
55d252b9c3
GitLab: properly handle token which has Guest only access
5 years ago
Jordi Boggiano
d63eb8179e
Merge branch 'master' into 2.0
5 years ago
Jordi Boggiano
7a270955f5
Fix issues handling branch names with pipes in them
5 years ago
Jordi Boggiano
80875e896d
Merge branch 'master' into 2.0
5 years ago
Jordi Boggiano
05737a46fb
Improve funding info parsing
5 years ago
Jordi Boggiano
9cab8c10cc
Merge branch 'master' into 2.0
5 years ago
Jordi Boggiano
c4f19e51d8
Rework the funding info parsing to avoid requiring graphql permissions
5 years ago
Jordi Boggiano
a2eb0bab12
Abort loop correctly when package is a match
5 years ago
Jordi Boggiano
5b41b78809
Optimize findPackagesWithReplacersAndProviders to avoid multiple loops over replace/provide links
5 years ago
Jordi Boggiano
20e4cc3b6f
Fix finding replacers/providers to check constraints correctly
5 years ago
Jordi Boggiano
2e82e34fe0
Merge branch 'master' into 2.0
5 years ago
Jordi Boggiano
4f59162827
Fix class name of caught exception
5 years ago
Jordi Boggiano
0ad322e51f
Fix tests
5 years ago
Jordi Boggiano
bc002ae1fb
Merge branch 'master' into 2.0
5 years ago
Jordi Boggiano
8dc055bec7
Fix 5.3 syntax
5 years ago
Jordi Boggiano
f171d1fd89
Avoid requiring auth for the funding API access
5 years ago
Jordi Boggiano
b033a2ae81
Retrieve funding info from github into composer.json if not declared there
5 years ago
Jordi Boggiano
71005091f0
Fix invalid access to private prop
5 years ago
Jordi Boggiano
2d8a8ed7e3
Add InstalledRepository to clean up some concepts and usages, remove BaseRepository
5 years ago
Jordi Boggiano
f35cd8948a
Minor refactoring of RootPackageRepo
5 years ago
Jordi Boggiano
835a91532d
Add PRE_POOL_CREATE event, fixes #8348
5 years ago
Jordi Boggiano
ef249ef6b6
Add support for lib-zip platform package
5 years ago
Stephan Vock
2a564a9f36
Create project: add option to add the repository to the composer.json
5 years ago
Jordi Boggiano
2f4ea3a463
Fix show command, refactor RepositorySet constructor
5 years ago
Jordi Boggiano
38f6ae2c4e
Fix react/promise usage for v2
5 years ago
Jordi Boggiano
1e68555e0a
Sanitize URLs in getRepoName and centralize the Url sanitization process
5 years ago
Jordi Boggiano
c41df325d8
Remove RepositorySet from Solver and remove getPool from RepositorySet
5 years ago
Jordi Boggiano
29efc473a1
Suggest which providers could be required to fulfill a virtual package requirement, fixes #2811
5 years ago
Jordi Boggiano
3fc7e10c5c
Improve error reporting of solver issues, refs #7779
...
Fixes #8525
Fixes #6513
5 years ago
Jordi Boggiano
46e35bc8d7
Fix 5.3/undef var issues
5 years ago
Jordi Boggiano
2901995fc8
Fix issue excluding unstable packages when stabilityFlags are empty
5 years ago
Jordi Boggiano
8f09f3764b
Avoid fetching non-existing files multiple times
5 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