1801 Commits (33759d02c4d730860dd31e949207fc43601caef5)

Author SHA1 Message Date
Jordi Boggiano 79e4ff4373
Merge pull request #8186 from freality/script_event_originating
allow Composer\Script\Event to reference originating event
5 years ago
Jordi Boggiano 369e8a2247
Fix indenting 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
Ken Love b51cfce8e6 return the upper-most event in chain 5 years ago
Jordi Boggiano 79a300eaac
Merge branch '1.8' 5 years ago
Jordi Boggiano fbb964888d
Merge branch '1.8' 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
Rob Bast 080b0f27e9 add missing testcase 5 years ago
ShiraNai7 a2b647a99e Handle absolute phar:// paths in autoload_static.php 5 years ago
Jordi Boggiano 2b421a94cb
Merge branch '1.8' 5 years ago
Rob Bast 25e3f6d4b9 expand regex and testcases 5 years ago
Rob Bast 971528916b fix regex for heredoc/nowdoc
* take into account relaxed changes introduced in php 7.3
  * see: 4887357269
* allow " as well as ', which was introduced in php 5.3

closes #8080
5 years ago
Patrick Reimers dd1e80a38f
Add tests for wrong package name. 5 years ago
Patrick Reimers 5d14a95543
Add test for warning on deprecated naming 5 years ago
Nils Adermann 0619fbed58 Merge branch '1.8'
* 1.8:
  Follow up to #7946 test: add solver flag to assert path execution
5 years ago
Nils Adermann 29ff6a40ae Follow up to #7946 test: add solver flag to assert path execution 5 years ago
Jordi Boggiano 28b51ccfc5 Merge branch '1.8' 5 years ago
Jordi Boggiano c66bb0b1d0 Fix tests 5 years ago
Jordi Boggiano ff246e3e85 Merge branch '1.8' 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 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
Nils Adermann 6b2edeae56 Fix solver problem exceptions with unexpected contradictory "Conclusions"
This 5 character fix comes with a solver test as well as a functional
installer test essentially verifying the same thing. The solver test is
more useful when working on the solver. But the functional test is less
likely to be accidentally modified incorrectly during refactoring, as
every single package, version and link in the rather complex test
scenario is essential, and a modified version of the test may very well
still result in a successful installation but no longer verify the bug
described below.

Background:

In commit 451bab1c2c from May 19, 2012 I
refactored literals from complex objects into pure integers to reduce
memory consumption. The absolute value of an integer literal is the id
of the package it refers to in the package pool. The sign indicates
whether the package should be installed (positive) or removed (negative),

So a major part of the refactoring was swapping this call:

$literal->getPackageId()

For this:

abs($literal)

Unintentionally in line 554/523 I incorrectly applied this change to the
line:

$this->literalFromId(-$literal->getPackageId());

It was converted to:

-abs($literal);

The function literalFromId used to create a new literal object. By using
the abs() function this change essentially forces the resulting literal
to be negative, while the minus sign previously inverted the literal, so
positive into negative and vice versa.

This particular line is in a function meant to analyze a conflicting
decision during dependency resolution and to draw a conclusion from it,
then revert the state of the solver to an earlier position, and attempt
to solve the rest of the rules again with this new "learned" conclusion.

Because of this bug these conclusions could only ever occur in the
negative, e.g. "don't install package X". This is by far the most likely
scenario when the solver reaches this particular line, but there are
exceptions.

If you experienced a solver problem description that contained a
statement like "Conclusion: don't install vendor/package 1.2.3" which
directly contradicted other statements listed as part of the problem,
this could likely have been the cause.
5 years ago
Fred Emmott bac2ef3dfd
Don't do (new Foo())->bar() - not 5.3-compatible 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 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 98a15bc93c Add output for metapackage installs/updates/.. fixes #7586 5 years ago
Jordi Boggiano 81de5f82aa Merge branch '1.8' 6 years ago
Sascha Egerer 1845adcfbd Fix update whitelist pattern resolving and add more tests 6 years ago
Sascha Egerer 50cb5fe3da Update all whitelist matching root dependencies
The update command can receive a pattern like `vendor/prefix-*`
to update all matching packages.
This has not worked if multiple packages, depending on each other,
where matched to the given pattern. No package has been updated
in this case as only the first package matching the pattern was
added to the whitelist.
6 years ago
Nils Adermann 386382503d Add a test for autoloading if a package is only required via replacing name 6 years ago
Den Girnyk 3b6b63784f Fix: Keep replaced packages for autoload dumping with --no-dev 6 years ago
Jordi Boggiano 2200043a43
Merge pull request #7900 from Great-Antique/fix-dumpautoload-no-dev-packages-resolving
Fix: Keep replaced packages for autoload dumping with --no-dev
6 years ago
Jordi Boggiano b7d1f87848 Fix tests 6 years ago
Den Girnyk 5b78ea529a
Fix: Keep replaced packages for autoload dumping with --no-dev 6 years ago
fancyweb a9d6068c57 feat(buffer-io): add the possibility to set user inputs for interactive questions 6 years ago
Jordi Boggiano 85ec111dee Merge remote-tracking branch 'dmanners/add-chat-option-for-support' 6 years ago
Jérôme Deuchnord b0b00ad1fa Call a script recursively with extra parameters (#7720)
* Added support for calling scripts recursively (fixes #7562)
6 years ago
Jordi Boggiano 86f59348f5
Fix TestCase import 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 ceb3a7a8e8 Merge branch '1.7' 6 years ago
Jordi Boggiano 42dca2aff5 Remove weird binary file from repo 6 years ago
Jordi Boggiano 2528654c53 Merge branch '1.7' 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
Alexey Kopytko aa6d138bdc Check for the actual warning description 6 years ago
Alexey Kopytko 20107dbf77 Ensure that a missing SSL/TLS protection warning does not pollute STDOUT
Fixes #7737
6 years ago
Stephan Vock 819f487b38 Bitbucket: switch to v2 API 6 years ago
David Manners 96347fbea1 composer/composer#7384: add chat to support options
- update schema documents to note that chat is allowed,
 - validate that chat must be a string and a url similar to forum options
6 years ago
Kristof Ringleff, Fooman add71388ca Add failing artifact 6 years ago