80 Commits (b751156e1cdc798fc8b0ec06af7cae8ac3e8a22a)

Author SHA1 Message Date
John Stevenson dfc69140fe
Fix compiler on Windows (#9730) 3 years ago
Jordi Boggiano b7d770659b
CS fixes 4 years ago
Jordi Boggiano 35b403b266
Make sure a version not found issue is reported as such for clarity, fixes #9500 4 years ago
Jordi Boggiano 3ffdd67e81
Fix running compiler in CI env 4 years ago
Jordi Boggiano 22fef8c51a
Make sure no files are missing from the phar, fixes #9421 4 years ago
Jordi Boggiano 9bfddadf3d
Make sure no unknown files get excluded from the phar, fixes #9331 4 years ago
Jordi Boggiano b4f0f4ddd2
Fix php8 file being missing from phar, refs #9331 4 years ago
Simon Berger 80d71ccb3f Merged isset, unset and str_replace calls 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
Jordi Boggiano 2c8a4a1b93
Add platform-check config option to disable platform_check.php generation, and disable it for Composer 4 years ago
Jordi Boggiano c41bb909ff
Add platform check file in phars, fixes #8813 4 years ago
Jordi Boggiano 2e82e34fe0
Merge branch 'master' into 2.0 4 years ago
Jordi Boggiano ee2252c6ac
Add lint check after phar is built
The initial 1.10.0-RC build (593b8dfb29)
had what looks like a bit flip of one > into a :, causing a parse error as $foo->bar became $foo-:bar in some class.

This is quite unpleasant and easy to miss as it requires including the file in question before the error is spotted.

It was quite lucky I ran a composer install with the new phar right after to do something else and spotted the error.

Linting all files covers this problem mostly, at least for the PHP files.
4 years ago
Jordi Boggiano 5f988a34a6
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 4271167495
Improve version reporting 5 years ago
Jordi Boggiano f946d8eb5a More RemoteFilesystem usage removals and some repository/vcs driver refactorings 6 years ago
François-Xavier de Guillebon 114217c6e3
Fix ini_get() for boolean values 6 years ago
Helmut Hummel b99798068d Use symfony/console for hidden questions
Fixes: #7337
6 years ago
johnstevenson ed97c2116c Use external XdebugHandler library 6 years ago
Jordi Boggiano c8aea719b1 CS fixes 7 years ago
Fedir Kryvytskyi dc509b236f Fixed error, when composer.phar was broken, if it compiled inside folder, that has /composer in path 7 years ago
Jordi Boggiano d20d856aa8 Merge remote-tracking branch 'nicolas-grekas/php7-static' 8 years ago
Nicolas Grekas fd2f51cea8 Speedup autoloading on PHP 5.6 & 7.0+ using static arrays 8 years ago
Jordi Boggiano 1a5441f944 Add ca-bundle to build 8 years ago
Jordi Boggiano 5d015defb8 Merge remote-tracking branch 'origin/master' into tls-config 9 years ago
Jordi Boggiano c9501a4cc1 Update dependencies, fixes #4706 9 years ago
Jordi Boggiano ce08582671 Fix CS 9 years ago
Rob Bast 0adcab7a19 compile phar with semver included 9 years ago
Rob Bast 56f0d82207 get resources dir from spdxlicenses 9 years ago
Rob Bast 1f006a499e updated compiler class to include spdx sources 9 years ago
Jordi Boggiano b7c827c2e5 Use external lib for hidden cli prompting 9 years ago
Jordi Boggiano 2a48b0faa0 Make autoloader suffix a reproducible value as well, refs #3927 9 years ago
Jordi Boggiano facdd8a503 Add phar-utils package to update timestamps after the build is done, refs #3927 9 years ago
Jordi Boggiano ebffb3c179 Move improvements towards reproducible builds, refs #3927 9 years ago
Jordi Boggiano 92785ac677 Make builds more reproducible, refs #3927 9 years ago
Jordi Boggiano c573ae5781 Add missing LICENSE files from dependencies, fixes #3776 9 years ago
Padraic Brady 19e24c5804 Merge branch 'master' into tls-config
Conflicts:
	.travis.yml
	doc/03-cli.md
	src/Composer/Command/ConfigCommand.php
	src/Composer/Command/CreateProjectCommand.php
	src/Composer/Command/DiagnoseCommand.php
	src/Composer/Command/InstallCommand.php
	src/Composer/Command/RequireCommand.php
	src/Composer/Command/SelfUpdateCommand.php
	src/Composer/Command/ShowCommand.php
	src/Composer/Command/UpdateCommand.php
	src/Composer/Config.php
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Factory.php
	src/Composer/Repository/ComposerRepository.php
	src/Composer/Repository/PearRepository.php
	src/Composer/Repository/Vcs/VcsDriver.php
	src/Composer/Util/GitHub.php
	src/Composer/Util/RemoteFilesystem.php
10 years ago
Jordi Boggiano 2131c8b480 Simplify tag probe 10 years ago
Thijs Lensselink 6ccc804094 Fix #3521 version mismatch when running diag, Replaced git command to get current checked out tag 10 years ago
Andrew Coulton 9ca99762f9 Prevent APC causing random fatal errors [fixes #264]
Update the phar stub to prevent APC attempting to run the composer classes through
the opcode cache on supported APC versions to avoid the random fatal "duplicate
class" errors at runtime as reported in #264.

Prior to APC version 3.0.12 this was a PHP_INI_SYSTEM directive, so output a
warning instead.
10 years ago
Javier Spagnoletti 5a473439ed Updated $branchAliasVersion set based on @Seldaek's suggestion. 10 years ago
Javier Spagnoletti e36f2ea618 Added branch-alias for dev-master to --version|-V output when current version is actually a revision (a non release/git tag).
This replies the work done in #3352 respecting other uses of ```Composer::VERSION``` constant.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| Doc PR        | none
10 years ago
Jordi Boggiano b0cabd1e98 Revert "Added branch-alias for dev-master to ```--version|-V``` output when current", fixes #3356
This reverts commit 225a8f7a56.
10 years ago
Javier Spagnoletti 225a8f7a56 Added branch-alias for dev-master to ```--version|-V``` output when current
version is actually a revision (a non release/git tag).
Example:

Before:
```
$ composer --version
Composer version 73e9db5d99 2014-10-07 15:03:19
```

After:
```
$ composer --version
Composer version 1.0-dev (73e9db5d99) 2014-10-07 15:03:19
```

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Doc PR        | none
10 years ago
Pádraic Brady 470fb58273 Add a bundled cacert.pem as a last resort option 10 years ago
Andreas Hennings 8e11a7684f phar compiler should also compile autoload_psr4.php 11 years ago
Jordi Boggiano 78edca3ad6 Only replace version in Composer.php, fix user agent 11 years ago
Jordi Boggiano 5b96caf8ce Add version release date to -V output, fixes #2267 11 years ago
John Long 908b71b7e5 Add class property Compiler::$version
Compiler::$version is referenced within compile, addFile, and getStub
11 years ago
Jordi Boggiano cee34b4faa Add the include_paths.php autoload file to the phar when it is present 12 years ago