Jordi Boggiano
a0690525b5
Merge branch '1.9'
2019-10-30 15:25:57 +01:00
Jordi Boggiano
149250ab92
Remove credentials from git remotes in cache and vendor dirs
...
This only removes the credentials if they are managed by composer auth.json or equivalent, if the credentials were present in the package URL to begin with they might remain
Refs #8293
Fixes #3644
Closes #3608
2019-10-30 15:24:53 +01:00
Nils Adermann
0873c4099b
Merge branch '1.9'
...
* 1.9:
Move test file parsing into try/catch block to avoid phpunit swallowing errors
2019-10-29 23:09:53 +01:00
Nils Adermann
6a335a459c
Move test file parsing into try/catch block to avoid phpunit swallowing errors
2019-10-29 23:08:03 +01:00
Andriy Maletsky
ec293adabc
make optimized autoloader respect PSR standards
2019-10-29 20:36:29 +02:00
Markus Staab
e47aa38ad4
Added phpdoc for ComposerAutoloaderInit$SHA1::getLoader() ( #8393 )
2019-10-29 14:08:33 +01:00
Jordi Boggiano
78b8c365cd
Merge branch '1.9'
2019-10-24 15:05:45 +02:00
Jordi Boggiano
18dad48fa6
Merge pull request #8363 from sincilite/feature/error-reporting-for-missing-path
...
Improve error reporting for missing path in Repository Path
2019-10-24 11:34:55 +02:00
johnstevenson
8d9b822413
Add messages to junction tests to see failures
2019-10-21 11:09:17 +02:00
Arnout Boks
22caa0f097
Add tests for installer with lock: false
...
https://github.com/composer/composer/issues/8354
2019-10-20 10:51:59 +02:00
Mike van Rooyen
6b56ddae2a
Remove unused variable
2019-10-08 20:49:44 +01:00
Mike van Rooyen
daedb4a74f
Remove extra line in method following CS-Fixer
2019-10-08 16:08:11 +01:00
Mike van Rooyen
e62478ab89
Test to check there is a RuntimeException thrown when a path repository doesn't exist
2019-10-08 15:48:04 +01:00
zakonnic
f159eb724a
Add test for double gap in php-file
2019-09-20 17:08:00 +03:00
Jordi Boggiano
a403ee9b0e
Fix tests for reals
2019-08-29 15:23:58 +02:00
Jordi Boggiano
6fee17f16c
Fix tests, refs #8292
2019-08-29 15:09:26 +02:00
Jordi Boggiano
362ebe4f68
Fix update mirrors to also update transport-options, fixes #7672
2019-07-31 18:43:18 +02:00
Jordi Boggiano
db6882b57f
Fix updating or URLs to include dist type and shasum, fixes #8216
2019-07-31 18:36:27 +02:00
Jordi Boggiano
0fe200d6d9
Fix origin computation
2019-07-31 18:01:08 +02:00
Jordi Boggiano
26a3e12c96
Merge pull request #7994 from aschempp/feature/zip-util
...
Extract the ZIP utility functions from ArtifactRepository
2019-07-30 11:36:10 +02:00
Jordi Boggiano
14f2a6dd9a
Fix remove command not working with escaped slashes (e.g. foo\/bar), fixes #8249
2019-07-30 09:48:49 +02:00
Jordi Boggiano
555fa5bae2
Merge pull request #8239 from carusogabriel/improve-redability-foreach
...
Make usage of foreach to improve readability
2019-07-30 07:24:43 +02:00
Jordi Boggiano
6ecff8e71d
Merge pull request #8241 from carusogabriel/remove-assignment
...
Remove override assignment
2019-07-29 18:08:15 +02:00
Jordi Boggiano
70c0d20772
Merge pull request #8242 from carusogabriel/remove-unused-private-methods
...
Remove unused private methods
2019-07-29 18:07:13 +02:00
Jordi Boggiano
d9c2f00891
Merge pull request #8240 from carusogabriel/remove-unused-private-properties
...
Remove unused private properties
2019-07-29 18:06:55 +02:00
Jordi Boggiano
79e4ff4373
Merge pull request #8186 from freality/script_event_originating
...
allow Composer\Script\Event to reference originating event
2019-07-29 16:46:06 +02:00
Jordi Boggiano
369e8a2247
Fix indenting
2019-07-29 16:44:50 +02:00
Gabriel Caruso
1d05d4171c
Remove unused private methods
2019-07-24 03:13:53 +02:00
Gabriel Caruso
4cb2b303ec
Remove override assignment
2019-07-24 02:57:08 +02:00
Gabriel Caruso
6c8ddd4d57
Remove unused private properties
2019-07-24 02:53:53 +02:00
Gabriel Caruso
b4fc3b7eef
Make usage of foreach to improve readability
...
Instead of count and comparing, we can simple use a foreach.
2019-07-24 02:39:40 +02:00
Nils Adermann
e022c07370
Merge branch '1.8'
...
* 1.8:
SVN: hide passwords for debug output
2019-06-27 14:06:49 +02:00
Stephan Vock
8da046e4e9
SVN: hide passwords for debug output
2019-06-23 18:59:36 +01:00
Ken Love
b51cfce8e6
return the upper-most event in chain
2019-06-13 14:51:27 -04:00
Jordi Boggiano
79a300eaac
Merge branch '1.8'
2019-06-07 16:58:37 +02:00
Jordi Boggiano
fbb964888d
Merge branch '1.8'
2019-06-07 13:12:21 +02:00
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
2019-05-10 13:55:31 +02:00
Rob Bast
080b0f27e9
add missing testcase
2019-05-08 15:58:02 +02:00
ShiraNai7
a2b647a99e
Handle absolute phar:// paths in autoload_static.php
2019-04-11 20:23:31 +02:00
Jordi Boggiano
2b421a94cb
Merge branch '1.8'
2019-04-09 13:05:02 +02:00
Rob Bast
25e3f6d4b9
expand regex and testcases
2019-04-04 08:31:26 +02:00
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
2019-04-03 10:46:35 +02:00
Patrick Reimers
dd1e80a38f
Add tests for wrong package name.
2019-03-05 10:53:43 +01:00
Andreas Schempp
0e2215dc6c
Added full unit test coverage
2019-03-04 11:08:59 +01:00
Patrick Reimers
5d14a95543
Add test for warning on deprecated naming
2019-03-01 20:11:20 +01:00
Nils Adermann
0619fbed58
Merge branch '1.8'
...
* 1.8:
Follow up to #7946 test: add solver flag to assert path execution
2019-02-10 20:28:05 +01:00
Nils Adermann
29ff6a40ae
Follow up to #7946 test: add solver flag to assert path execution
2019-02-10 20:26:47 +01:00
Jordi Boggiano
28b51ccfc5
Merge branch '1.8'
2019-02-10 20:24:43 +01:00
Jordi Boggiano
c66bb0b1d0
Fix tests
2019-02-10 13:07:42 +01:00
Jordi Boggiano
ff246e3e85
Merge branch '1.8'
2019-02-10 12:59:38 +01:00
Jordi Boggiano
f2cc666c2c
Merge pull request #7913 from fredemmott/hhvm-version
...
Support identifying the HHVM version when not running with HHVM
2019-02-08 16:13:32 +01:00
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
2019-02-05 15:32:52 +01:00
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.
2019-02-03 16:33:55 +01:00
Fred Emmott
bac2ef3dfd
Don't do (new Foo())->bar() - not 5.3-compatible
2019-02-01 11:20:34 -08:00
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
2019-01-29 09:48:15 -08:00
Jordi Boggiano
79af9d45af
Merge branch '1.8'
2019-01-29 13:49:25 +01:00
Jordi Boggiano
acea4a4d4d
Warn on invalid package name or require/provide/.., fixes #7874
2019-01-29 13:46:23 +01:00
Jordi Boggiano
98a15bc93c
Add output for metapackage installs/updates/.. fixes #7586
2019-01-29 11:38:18 +01:00
Jordi Boggiano
81de5f82aa
Merge branch '1.8'
2019-01-28 17:57:31 +01:00
Sascha Egerer
1845adcfbd
Fix update whitelist pattern resolving and add more tests
2019-01-28 17:34:24 +01:00
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.
2019-01-28 17:34:08 +01:00
Nils Adermann
386382503d
Add a test for autoloading if a package is only required via replacing name
2019-01-28 17:08:51 +01:00
Den Girnyk
3b6b63784f
Fix: Keep replaced packages for autoload dumping with --no-dev
2019-01-28 17:02:32 +01:00
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
2019-01-28 15:52:43 +01:00
Jordi Boggiano
b7d1f87848
Fix tests
2019-01-28 15:44:21 +01:00
Den Girnyk
5b78ea529a
Fix: Keep replaced packages for autoload dumping with --no-dev
2019-01-18 11:45:35 +02:00
fancyweb
a9d6068c57
feat(buffer-io): add the possibility to set user inputs for interactive questions
2019-01-05 11:59:33 +01:00
Jordi Boggiano
85ec111dee
Merge remote-tracking branch 'dmanners/add-chat-option-for-support'
2018-11-26 19:47:13 +01:00
Jérôme Deuchnord
b0b00ad1fa
Call a script recursively with extra parameters ( #7720 )
...
* Added support for calling scripts recursively (fixes #7562 )
2018-11-26 12:35:41 +01:00
Jordi Boggiano
86f59348f5
Fix TestCase import
2018-11-12 15:24:28 +01:00
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
2018-11-12 15:23:32 +01:00
Jordi Boggiano
ceb3a7a8e8
Merge branch '1.7'
2018-10-31 18:32:39 +01:00
Jordi Boggiano
42dca2aff5
Remove weird binary file from repo
2018-10-31 18:29:32 +01:00
Jordi Boggiano
2528654c53
Merge branch '1.7'
2018-10-31 18:13:39 +01:00
Jordi Boggiano
9e6a0bff71
Merge pull request #7658 from fooman/fix-non-zip-file-with-zip-ext
...
Fix regression for artifact repository
2018-10-31 16:12:55 +01:00
Alexey Kopytko
aa6d138bdc
Check for the actual warning description
2018-10-30 15:56:24 +01:00
Alexey Kopytko
20107dbf77
Ensure that a missing SSL/TLS protection warning does not pollute STDOUT
...
Fixes #7737
2018-10-30 15:56:24 +01:00
Stephan Vock
819f487b38
Bitbucket: switch to v2 API
2018-10-19 14:31:17 +02:00
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
2018-10-14 11:15:25 +00:00
Kristof Ringleff, Fooman
add71388ca
Add failing artifact
2018-10-01 23:03:51 +13:00
Gabriel Caruso
71c8735e11
Use combined assignment operators
2018-09-10 14:24:41 +02:00
Gabriel Caruso
a17f051e29
Remove useless parentheses
2018-09-10 14:24:24 +02:00
Christophe Coevoet
8c3898aa57
Update tests for replace conflicts
...
This reverts the test changes done in b4698568d2
to the original tests added
in 1425bb7fc3
.
2018-08-27 12:14:34 +02:00
Jordi Boggiano
bf125295df
Fix escaping of URLs in Perforce and Subversion drivers
2018-08-25 18:48:56 +02:00
Jordi Boggiano
3d01ef28fa
Revert "Do not dump source and dist for metapackages"
...
The source/dist reference is needed to operate composer outdated and other functionality
Fixes #7546
This reverts commit 42739e7959
.
2018-08-22 09:45:54 +02:00
Alexander Kurilo
e1a6bd5ff1
Make JSON formatter test clearer
2018-08-10 08:54:34 +02:00
Alexander Kurilo
5a22a4f1f3
Make surrogate sequences in JSON work on PHP 5.3
...
Fixes #7510
2018-08-10 08:54:27 +02:00
Rafael Kassner
42739e7959
Do not dump source and dist for metapackages
2018-07-29 16:16:02 +02:00
Jordi Boggiano
ff59bbdab0
CS fixer
2018-07-24 14:32:52 +02:00
Jordi Boggiano
c5fa3bdde0
Migrate to repo.packagist.org for package metadata
2018-07-24 09:30:06 +02:00
Jordi Boggiano
16af52be8a
Merge remote-tracking branch 'origin/1.6'
2018-07-20 11:39:44 +02:00
Théo FIDRY
87646ae689
Hide suggest reason when there is not one
2018-06-09 15:18:21 +01:00
Jordi Boggiano
0a27ca7b65
Make sure circular dependencies do not break the autoload dumper, refs #7316 , refs #7348
2018-06-06 14:51:52 +02:00
Jordi Boggiano
eedbd218f5
Make sure circular dependencies do not break the autoload dumper, refs #7316 , refs #7348
2018-05-31 17:02:04 +02:00
Jordi Boggiano
46f973e213
Merge branch '1.6'
2018-05-15 16:07:05 +02:00
Philipp Fritsche
b0be87177d
Filter dev-dependencies from "dump-autoload --no-dev" , fixes #4343
2018-05-08 02:57:26 +02:00
Jordi Boggiano
4ebb747e12
Merge branch '1.6'
2018-05-04 11:18:18 +02:00
Jordi Boggiano
78ae0a97f7
Terminate quoted strings
2018-05-04 11:02:12 +02:00
Jordi Boggiano
3b9d6769bf
Fix class names in comments being parsed in short_open_tags files, fixes #7289
2018-05-04 11:02:12 +02:00
Jordi Boggiano
464daeebe2
Merge branch '1.6'
2018-05-03 17:38:09 +02:00