908 Commits (abdc6893a6da0980b07343005f5807ecb73f3150)

Author SHA1 Message Date
Patrick Reimers 627a832cc1
Return non zero exit code on deprecation 5 years ago
Jordi Boggiano 2e204b0161
Remove support for the first version of the compression algo (#7906) 5 years ago
Matthew Brown 65903aacfd Fix type issues (#7996)
* Fix type issues found by Psalm
5 years ago
CZechBoY a062cd1a31
added phpstan on level 0 5 years ago
Nils Adermann 10ada7bf82 Refactor Installer class into separate install and update processes
- Introduce separate Lock and LocalRepo transactions, one for changes
  to the lock file, one for changes to locally installed packages based
  on lock file
- Remove various hacks to keep dev dependencies updated and
  incorporated the functionality into the transaction classes
- Remove installed repo, there are now local repo, locked repo and
  platform repo
- Remove access to local repo from solver, only supply locked packages
- Update can now be run to modify the lock file but not install packages
  to local repo
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 408df4b878 Avoid dumping null values for dist reference/shasum and source reference, fixes #7955 5 years ago
Jordi Boggiano 4517c00d40 Merge branch 'master' into 2.0 6 years ago
Jordi Boggiano acea4a4d4d Warn on invalid package name or require/provide/.., fixes #7874 6 years ago
Jordi Boggiano b89720b52a Merge branch 'master' into 2.0 6 years ago
Sascha Egerer 1845adcfbd Fix update whitelist pattern resolving and add more tests 6 years ago
Jordi Boggiano 0b928b2a42 Merge branch 'master' into 2.0 6 years ago
Jordi Boggiano 3dfcae99a9 Add parallel download capability to FileDownloader and derivatives 6 years ago
Stephan Vock 59360983c6 Archive: cleanup temp dir on download error 6 years ago
Jordi Boggiano fd5c5ff6bc Fix implementation of whatProvides for older provider-only repos 6 years ago
Jordi Boggiano e8c6948770 Deduplicate link instances between versions of a given package 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 411dd51f20 Merge branch 'master' into 2.0 6 years ago
Jordi Boggiano 66d84f60c6 Fix pattern matching for remove wildcard, refs #7715 6 years ago
Jordi Boggiano 85ec111dee Merge remote-tracking branch 'dmanners/add-chat-option-for-support' 6 years ago
Jordi Boggiano 2e0f31106a Merge remote-tracking branch 'origin/master' into 2.0 6 years ago
Jordi Boggiano 5a56bb6971 Remove BC event and constraint classes 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 1898ad12ce Make sure we chdir back in case update dir is relative, refs #7519 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
Nils Adermann c0f19f6c57 Move construction of pool from repo set into a pool builder
Pool construction depends on the install request now, so only required
packages get loaded, add some structure for future asynchronously
loading composer repositories
6 years ago
Nils Adermann 6ef65e5319 Add a new RepositorySet class and restrict pool usage to the solver
Breaking change for the plugin interface so bumping the version of
composer-plugin-api to 2.0.0

First step for a refactoring of the package metadata loading mechanism
6 years ago
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.
6 years ago
Rafael Kassner 42739e7959 Do not dump source and dist for metapackages 6 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago
Vladimir Reznichenko 6f6d59426d New finding by Static Code Analysis: revert uniqid() to comply long path requirements 6 years ago
Vladimir Reznichenko cd39efc72c New finding by Static Code Analysis 6 years ago
Gabriel Caruso 7d9f8e2247
Improvements
Small improvements, such as remove unused imports, unecessaries casts, parentheses, etc.
6 years ago
Jordi Boggiano ef7252b358 Avoid relying on internal usort behavior 6 years ago
Jordi Boggiano c917865fe9 Fix handling of dev versions and consolidate logic, refs #7119 6 years ago
Jordi Boggiano 35ebb8b93f Merge branch '1.6' 6 years ago
Jordi Boggiano a51911f295 Merge commit 'b1a78b60fe552bc6e7df09cb1c0154797fea6f64' 6 years ago
Filippo Tessarotto 277f32d388 Lock _readme: remove outdated hashtag link part, closes #7096 6 years ago
Jordi Boggiano 2bd34c0534 Merge branch '1.6' 6 years ago
Jordi Boggiano 9041622b86 Fix version guessing regression and a few other issues, fixes #7127 6 years ago
Hector Prats 2413b55c60 LocalChanges for ArchiveFiles 6 years ago
Jordi Boggiano 1dc78c1ad9 Merge branch '1.6' 6 years ago
Jordi Boggiano 72476b62d4 Check for license validity only on newly updated branches, refs composer/packagist#866, refs composer/packagist#883 6 years ago
Jordi Boggiano 08f769220a Merge branch '1.6' 6 years ago
Jordi Boggiano f857da7c29 Remove deprecated license check from ValidatingArrayLoader, fixes #7026, fixes #7073 6 years ago
Jordi Boggiano 0fc6fb56a0 Fix validation of license field 6 years ago
Jordi Boggiano 96d07e6753 Merge branch '1.6' 7 years ago
Jordi Boggiano 842a7ea922 Fix dev-master not being normalized correctly for the root package, fixes #7007 7 years ago
Jordi Boggiano ea9b7ecbb0
Merge pull request #6982 from carusogabriel/phpstan
Fixes from PHPStan level 0
7 years ago
Jordi Boggiano 5a1765c838 Only warn for license deprecations for new releases/branches 7 years ago
Gabriel Caruso 3d262bd637 Fixes from PHPStan level 0
More fixes from PHPStan level 0
7 years ago
Jordi Boggiano 188b3a35c8 Tweak license deprecation text to handle + more gracefully, fixes #6981 7 years ago
Jordi Boggiano 5cd0fef7ff Upgrade to SPDX License 3.0 and handle deprecations more gracefully, fixes #6951 7 years ago
Jordi Boggiano ab8437ce06 Merge remote-tracking branch 'swumao/feature-6892' 7 years ago
Gabriel Caruso 2ad6f611d7 Allow bin key to receive string 7 years ago
Andreas Möller 5e68566ce6
Fix: Typo / wording 7 years ago
Andreas Möller 6059acf0a3
Fix: Remove unused parameter and field 7 years ago
闫兴茂 1c0a494c72 Update findBestVersionForPackage method to support return package name 7 years ago
闫兴茂 354bd7f7e2 Update parse name version parirs name to lower 7 years ago
Jordi Boggiano 0a9abeef88 Merge branch '1.5' 7 years ago
Alessandro Lai fc6c12bd0a Fix pretty version guessing when non-dev branch 7 years ago
Gabriel Caruso 32a409a3ee Clean elses 7 years ago
Jordi Boggiano 5ba6d7d436 Fix pretty guessed versions to show nicely on numeric branches, refs #6845 7 years ago
Alessandro Lai 3cf31da414 Fix root package not having a pretty version when detecting from VCS, fixes #6845, closes #6847 7 years ago
Jordi Boggiano 40f4f6bf86 Fix docblock 7 years ago
Jérôme Vasseur 71c2ecbace Fix platform package detection in VersionParser 7 years ago
Jordi Boggiano c52e8e5656 Update comment 7 years ago
Jordi Boggiano b07be842a0 Remove feature-branches option as it is misnamed and duplicates the non-feature-branches option, refs #6475 7 years ago
Jordi Boggiano cc9234562d Merge pull request #6475 from NamelessCoder/featurebranches
Add support for feature-branches setting
7 years ago
Claus Due 965f1f42d1 Add support for feature-branches setting
A negative list of non-feature-branches names
is already supported - this patch adds a list of
branches names which *will* be considered as
feature branches.

Allows changing the currently hardcoded set of
expected feature branch names, from:

* master|trunk|default|develop

To any set of names or patterns that you desire.
7 years ago
Sergey Shcherbin c890d660cd Changed date format to DATE_RFC3399 for packages with git/hg repositories 7 years ago
Martin Hasoň 88ec172bd8 Fix CS 7 years ago
Nicole Cordes 313e6b914d Fix Git branch parsing for detached HEAD on a commit
Current versions of Git output the commit hash as detached HEAD instead
of FETCH_HEAD. The VersionGuesser should be able to handle commit hashes
as well as FETCH_HEAD to detect the correct branch of a commit.
7 years ago
Parallel 6ad7caa25e Add config>platform checking 7 years ago
Jordi Boggiano 843877cd6d Fix hg version guessing, fixes #6236, fixes #6235 7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Jordi Boggiano 34d7e26f25 Merge branch '1.3' 7 years ago
Jordi Boggiano c0b03d0d34 Force exact tag checks when we are in a detached head state 7 years ago
Jordi Boggiano 0ecd1f5eb5 Merge branch '1.3' 7 years ago
James Buncle 9be13783a3 Updated VersionGuesser to check if we actually have a version in the returned array (fixes bug originating from f6899e5 when array was first introduced) - as SVN Versions not being guessed as it would previously stop at Git check.
Fixes #6178
7 years ago
jbixler dac51c7f4b Add ignore filters option to archive command 8 years ago
Jordi Boggiano e54c7478ee Attempt at fixing support for git 2.11, refs #5942 8 years ago
Rob Bast 873f17261c
try to fix test instead of guarding implementation 8 years ago
Rob Bast 7d67da3ffa
guard against non array value 8 years ago
Rob Bast 611d6a0364
use array as default value
rather than assigning empty array in constructor. the latter can cause
issues with mocks in some scenarios (if constructor does not get called)
8 years ago
Jordi Boggiano a1e81c38f9 Merge branch '1.2' 8 years ago
Jordi Boggiano f320c67534 Avoid choking on non-string constraints, fixes #5807 8 years ago
Jordi Boggiano 9c8617cd33 Merge branch '1.2' 8 years ago
msiebeneicher 800a4bf391 fixed direct rename() usage for v1.2 8 years ago
Jordi Boggiano d9328ed5ae Merge pull request #5753 from alcohol/use-rfc3339-in-arraydumper
bring arraydumper in line with json schema spec and packagist
8 years ago
Jordi Boggiano 4cd6eabdba Merge branch '1.2' 8 years ago
Rob Bast 64317e1ff8
bring arraydumper in line with json schema spec and packagist 8 years ago
Rob Bast 710bb0d008
fix based on test, fixes #5724 8 years ago
Jordi Boggiano 8313e86877 Remove hash from composer.lock as content-hash has been out over a year and since 1.0.0-alpha11, refs #5653 8 years ago
Jordi Boggiano edddae42db Revert default change from #5603 8 years ago
John Whitley 4479b8a690 Squashed commit of the following:
commit 3994b556dcffcde7b1801c8bc712f3127e8f8e7c
Author: John Whitley <john.whitley@berea.eu>
Date:   Tue Aug 16 09:02:53 2016 +0100

    https://github.com/composer/composer/issues/5600

    This alters the default flag for loadOptions in
    \Composer\Package\Loader\ArrayLoader to true; and alters the assumption
    of the test to reflect this change.

    **Rationale**

    The `\Composer\Package\Loader\ArrayLoader` test (defined in
    tests/Composer/Test/Package/Loader/ArrayLoaderTest.php) assumed that a
    new `\Composer\Package\Loader\ArrayLoader` instance would be always
    created with the optional flag loadOptions set to true.

    ```php
    $this->loader = new \Composer\Package\Loader\ArrayLoader(null, true);
    ```

    This change alters the general case to reflect the default assumption as
    defined in the test.

commit b75fc4ad7238bc50f724bd29446ccbc33e82c34c
Author: John Whitley <john.whitley@berea.eu>
Date:   Mon Aug 15 16:55:27 2016 +0100

    Altered the test for ArrayLoader to use the default loadConfig flag, and to test the true and false states for the loadConfig flag
8 years ago
Jordi Boggiano 6f7389e911 Revert default change from #5603 8 years ago
John Whitley c51c1b3047 Squashed commit of the following:
commit 3994b556dcffcde7b1801c8bc712f3127e8f8e7c
Author: John Whitley <john.whitley@berea.eu>
Date:   Tue Aug 16 09:02:53 2016 +0100

    https://github.com/composer/composer/issues/5600

    This alters the default flag for loadOptions in
    \Composer\Package\Loader\ArrayLoader to true; and alters the assumption
    of the test to reflect this change.

    **Rationale**

    The `\Composer\Package\Loader\ArrayLoader` test (defined in
    tests/Composer/Test/Package/Loader/ArrayLoaderTest.php) assumed that a
    new `\Composer\Package\Loader\ArrayLoader` instance would be always
    created with the optional flag loadOptions set to true.

    ```php
    $this->loader = new \Composer\Package\Loader\ArrayLoader(null, true);
    ```

    This change alters the general case to reflect the default assumption as
    defined in the test.

commit b75fc4ad7238bc50f724bd29446ccbc33e82c34c
Author: John Whitley <john.whitley@berea.eu>
Date:   Mon Aug 15 16:55:27 2016 +0100

    Altered the test for ArrayLoader to use the default loadConfig flag, and to test the true and false states for the loadConfig flag
8 years ago
Jordi Boggiano e53119f806 Make use of pretty version for new references, refs #5328 8 years ago
Jordi Boggiano 44ddcf4da7 Merge remote-tracking branch 'slbmeh/feature/version-status' 8 years ago
Jordi Boggiano 98bf6d704e Undo addition of a bunch of Script methods to RootPackage[Interface], refs #5401 8 years ago
Jordi Boggiano a72ef947d4 Merge remote-tracking branch 'CupOfTea696/master' 8 years ago
bohwaz abcbef4a67 Add Fossil support to Composer 8 years ago
Sven Wittevrongel ca6f7b365b revert 3ad5f1843b 8 years ago
Sven Wittevrongel b80c33ba5c type-hint array for setConfig & setScripts 8 years ago
Sven Wittevrongel 3ad5f1843b Remove getScript from CompletePackage (it is root-only) 8 years ago
Sven Wittevrongel cccfb2fb22 RootAliasPackage fix 8 years ago
Sven Wittevrongel d0b0d1ad24 RootPackage::getScripts 8 years ago
Sven Wittevrongel dec44e6ba9 getconfig in RootAliasPackage 8 years ago
Sven Wittevrongel 3905f275d6 RootPackage::getConfig 8 years ago
Jordi Boggiano 57ae6d97b6 Merge branch '1.1' 8 years ago
Andreas Möller bb0fb0eb26
Fix: Do not issue warning when using exact version constraint for unstable package 8 years ago
Tomáš Markacz c30dd16e32 add missing validation for rss chanel section in composer schema 8 years ago
Steve Buzonas 8d766c8eb2 cleaner implementation of status output with support for path repositories 8 years ago
Jordi Boggiano 5cb3564672 Fix archiving paths on windows 8 years ago
Jordi Boggiano 8771119374 Merge branch '1.0' 8 years ago
Jordi Boggiano 6ce8477d04 Fix parsing of stabilities with AND/OR ops and no stability flags 8 years ago
Tom Klingenberg 73d04bf28b Support empty directories with tar-files, closes #5206
- Report: #5206

- Ref: 8389b4b
8 years ago
Jordi Boggiano 76350676b5 Warn on exact/overly strict constraints, fixes #2746 8 years ago
Jordi Boggiano 60ce2324bc Add ability to call composer from scripts using @composer XXX, fixes #5153 8 years ago
Jordi Boggiano 3b0a1c6f70 Run cs fixer and update config to latest master 8 years ago
Niels Keurentjes eb77c0b7f5 phpDoc cleanup, removed unused imports, variables and parameters. 8 years ago
Niels Keurentjes e6f21137ad Undefined or default return points fixed. 8 years ago
Tom Klingenberg 8389b4b829 Skip non-empty directories in zip generation
Empty dirs get archived (leafs).

Previously it seemed ok to skip all directories in zip generation.

References:

- Ref: 6066359944

- Issue: #4865 Keep empty folders after re-zip a module
8 years ago
Jordi Boggiano 8cfbe7023d CS fixes 8 years ago
Jordi Boggiano bf1ddaa298 Fix method name for php5 8 years ago
Jordi Boggiano 1aec1c1fc8 Add --repository flag to init command, and rename --repository-url to --repository in create-project, fixes #4200, closes #4207, closes #2604, fixes #2920 8 years ago
Jordi Boggiano 0ed5b541a9 Fix CS 8 years ago
Niels Keurentjes f794ee7870 Fixes for implicit variable declarations, return type mismatches and invalid method declarations. 8 years ago
Niels Keurentjes b059cbe37c Removed unused variables and includes, fixed functions being called with more arguments than declared. 8 years ago
Niels Keurentjes 98845dca6f PHP 5.3 does not support $this in closures. Nested reuse of identical variables separated. 8 years ago
Jordi Boggiano 4f55386a81 Set dist reference for root package as well, fixes #4828 8 years ago
Jordi Boggiano 5b65221523 Reverse order of version guessing for git, fixes #4673 8 years ago
Jordi Boggiano bad80878bc Merge remote-tracking branch 'sashman/master' 8 years ago
Rob Bast a245c4618b php-cs-fixer 8 years ago
Jordi Boggiano f681dbc51e Merge remote-tracking branch 'curry684/rewrite-depends' 8 years ago
Jordi Boggiano fff0aed3a6 Allow Semver VersionParser in input hints 8 years ago
Jordi Boggiano c9436438ff Add memoization to parseConstraints, saves some (6-7% here) RAM and marginal CPU time 8 years ago
Sash f6899e5c38 #4828 Using version guesser to pull out the commit has for git repositories. The return value is now an array with version and commit values. 8 years ago
Niels Keurentjes e38fe67333 Rewrote DependsCommand 9 years ago
Jordi Boggiano 6eb50623e6 Merge remote-tracking branch 'hfcorriez/compressed_archiver' 9 years ago
Jordi Boggiano 7e17fec3b8 Merge pull request #2585 from jaypea/ziparchiver
added ZipArchiver to actually compress zip files
9 years ago
Niels Keurentjes 7b6ccde97a Clarified error message and added braces. 9 years ago
Niels Keurentjes a48159b283 Bail out if root package attempts to include itself. 9 years ago
Jordi Boggiano 1818b95149 CS fixes 9 years ago
Jordi Boggiano f31799b739 Fix error output of the psr-4 trailing backslash validation 9 years ago
Sullivan SENECHAL 5d625c2231 Improve PHPDoc for package requires 9 years ago
Sullivan SENECHAL d9a62ffd50 Improve PHPDoc for package links 9 years ago
Jordi Boggiano 966a982738 CS fixes 9 years ago
Jordi Boggiano 1fca6be3bf Fix detection of the root package version to always use the correct cwd 9 years ago
Jordi Boggiano 4b269f4ded Follow stability option in create-project to select the best possible version, refs #4563 9 years ago
Jordi Boggiano 6c9b161c43 Re-use locker content hash logic to generate dist reference, refs #4515 9 years ago
Jordi Boggiano ac1a0c898d Add exclude-from-classmap support in validation 9 years ago
Jordi Boggiano 599ad77167 Merge pull request #4542 from bd808/feature/support-merge-plugin
Allow easier manipulation of RootAliasPackage
9 years ago
Bryan Davis dc40bf9f51 Remove unused local variables from AliasPackage 9 years ago
Bryan Davis 06c44ce998 Add setters used by composer-merge-plugin to RootPackageInterface
Extend RootPackageInterface with setter functions used by
composer-merge-plugin and implement them for RootAliasPackage. This will
allow composer-merge-plugin and similar code that manipulates the root
package at runtime to ignore the difference between a RootPackage and
a RootAliasPackage.
9 years ago
Jordi Boggiano 193a072d3c Clarify that the abstract constraint should not be relied upon anymore 9 years ago
Bryan Davis 2eb0af264b Allow RootAliasPackage to override cached values
AliasPackage caches the values of 'requires', 'devRequires',
'conflicts', 'provides', 'replaces' locally to allow `self.version`
references to be properly updated to reference the alias. Plugins like
composer-merge-plugin that manipulate these settings at runtime need to
be able to change the values after alias construction.
9 years ago
Jordi Boggiano 125dc62fab Make trigger error visible 9 years ago
Jordi Boggiano 82349bcb2a Fix support for extracting stability flags in multi-constraints, fixes #4440 9 years ago
Jordi Boggiano 507415e404 Make VersionSelector prefer stable by default and allow specifying a PHP version that must be matched, fixes #4318 9 years ago
Jordi Boggiano a54f84f05f Merge pull request #4479 from MakiCode/feature#4397
Added --file flag: Feature#4397
9 years ago
Rob Bast b523fc0b7b ran fixers 9 years ago
MakiCode 1c0b9cd65f Removed test for non-string file name check 9 years ago
MakiCode fefc106ef6 Removed type check on ArchiveManager 9 years ago
MakiCode 22e93f110b Fixed indentation 9 years ago
MakiCode 7005d89847 Fixed bug 9 years ago
MakiCode 63ede6c9dd Fixed issues with PR 9 years ago
MakiCode 0d00338bdb Added better messages and fixed bugs 9 years ago
MakiCode 906c1c2e66 Added check for filename in archive manager and added test 9 years ago
MakiCode 87b5af60a8 Almost finished adding --file option, need to add unit test 9 years ago
Jordi Boggiano ce08582671 Fix CS 9 years ago
Rob Bast 1328d9c3b2 rename baseversionparser to semverversionparser
and fix docblock as per @stof request
9 years ago
Rob Bast 89717fa593 implement old linkconstraintinterface for BC 9 years ago
Rob Bast a1ad7fc435 fix classname clashing cause of existing class in current namespace 9 years ago
Rob Bast a1427d7fd6 replace all occurences in code and comments 9 years ago
Rob Bast 1ccfc8eb96 add semver, deprecated existing classes 9 years ago
Jordi Boggiano 0cbf679f21 Avoid failing to write the lock file if a lock file is present but corrupt/conflicted 9 years ago
Jordi Boggiano 66acee7feb Add config.platform to the list of locked properties 9 years ago
Jordi Boggiano 74e56fd5c6 Merge remote-tracking branch 'szeber/master' 9 years ago
Jordi Boggiano 89c6a68a76 Updates to path repository and path downloader, refs #4365 9 years ago
Zsolt Szeberenyi 62630e5c69 Fix strict comparison of the content hash 9 years ago
Zsolt Szeberenyi bfb83f1fb7 Add name and version to the relevant fields, move content hash checking to the Locker 9 years ago
Samuel ROZE 4ab123291d Add missing licence in VersionGuesser 9 years ago
Samuel ROZE 623f31fcc4 Use version guesser to get local package version 9 years ago
Samuel ROZE 5261a5fa03 Move version guessing in `VersionGuesser` class 9 years ago
Jordi Boggiano 92faf1c7a8 Merge pull request #4228 from naderman/memory-version-constraint
Remove unnecessary version comparison cache variable and store operator as int
9 years ago
Nils Adermann ccaba0d2f7 Make static translation tables in version constraint private and use === 9 years ago
Jordi Boggiano c36d2a2e50 Merge pull request #4214 from legoktm/parse-links
Move VersionParser::parseLinks() to ArrayLoader::parseLinks()
9 years ago
Jordi Boggiano efb9f13248 Merge pull request #4229 from naderman/memory-version-array-merge
VersionParser: remove a few hundred/thousand array_merge calls
9 years ago
Nils Adermann de65199f31 Merge pull request #4117 from stof/patch-1
Optimize the regex detecting timestamps
9 years ago
Nils Adermann 3fd4672382 VersionParser: Append elements directly instead of array_merge 9 years ago
Nils Adermann e88df7429f Remove a few hundred/thousand array_merge calls 9 years ago
Nils Adermann 8dd110e0a9 Remove unnecessary version comparison cache variable and store operators as int 9 years ago
Kunal Mehta 14d1f0f3f6 Move VersionParser::parseLinks() to ArrayLoader::parseLinks()
Working towards #3545.

parseLinks is a wrapper around VersionParser::parseConstraints() that
creates Link objects, and better belongs in ArrayLoader.
9 years ago
Kunal Mehta 0ad9e98a59 Don't use BasePackage::$stabilities in VersionParser
Working towards #3545.

This adds VersionParser::$stabilities, which is an array of the
supported stability levels. This adds a little bit of duplication,
however we were already hardcoding the various stabilities in regular
expressions and functions like parseStability().
9 years ago
Kunal Mehta c5afb8f23a Mark VersionParser::formatVersion() as deprecated
With 1753c275ff, this will be handled nicely.
9 years ago
Kunal Mehta 99dab8aebd Move VersionParser::formatVersion() to BasePackage::getFullPrettyVersion()
Working towards #3545.

formatVersion() does not belong in VersionParser since it depends upon a
Package object, and is creating a more complete pretty formatted
version, not parsing anything.

The new getFullPrettyVersion() method can be seen as an extension to
getPrettyVersion(), and is located in BasePackage as a result.

Callers to VersionParser::formatVersion() were not updated in this
commit to demonstrate that no functionality was changed in this
refactor. They will be updated in a follow up commit.
9 years ago
Jordi Boggiano 8775c94895 Merge pull request #4196 from localheinz/fix/namespace
Fix: Import Symfony\Component\Finder\Finder
9 years ago
Andreas Möller 962f5a99ea Fix: Import Symfony\Component\Finder\Finder 9 years ago
Jordi Boggiano 6a64041055 CS fixes 9 years ago
Jordi Boggiano a8e004c7e7 Merge pull request #4199 from sminnee/version-comparison-docs
>=2.3.0 now includes pre-releases, added docs for this and -stable suffix Fixes #4080.
9 years ago
Sam Minnee 2cd698874f Include pre-releases in >=2.3.0 comparison. Fixes #4080.
This is a change to the >=2.3.0 comparison. Without this change, such a
comparison will exclude pre-release versions.

The rationale is that this makes the comparison more consistent with
<2.3.0 (which excludes all pre-releases) and ~2.3.0 (which includes
pre-releases).
9 years ago
Rob Bast 0298cdc60d change delimiter to curly braces 9 years ago
Jordi Boggiano a943827371 Show that no version was found in composer show/license if root package is auto-versioned, fixes #4158 9 years ago
Zsolt Szeberenyi 50b560fe4c Add the hash of the parsed content of the composer.json to the lock file, and use it to verify the json is not changed 9 years ago
nevvermind 12c833864c Revert converting `1.0.0` to `^1.0`. 9 years ago
Christophe Coevoet a014a2f803 Optimize the regex detecting timestamps
Using a possessive quantifier avoids useless backtracking.
9 years ago
Jordi Boggiano 17c2a8019e Merge pull request #4089 from nevvermind/plugin-api-versions
Make plugins have actual constraints instead of fixed versions
9 years ago
nevvermind 4fd9a3ceee compare against correct format 9 years ago
nevvermind 3032f0a538 Refactor based on code review
- Move the version api getter to the PluginManager And make it such that it can be mocked, but not pollute the public interface. That means "protected" visibility.
- The plugin api version constant should still be used throughout the code.
- Use different fixtures class names
- Use regex possessive quantifiers for performance
- Use full words for readability
9 years ago
Rob Bast 0f04f97088 Fixed failing testcase 9 years ago
nevvermind eb2aa14830 Make plugins have actual constraints instead of fixed versions
Instead of developing plugins against a single, fixed Plugin API version - `"composer-plugin-api": "1.0.0"`, this change will allow plugin developers to use versions like `"composer-plugin-api": "~1.1"` or `"composer-plugin-api": ">=2.1 <3.0"`, aka actual Composer-compatible constraints.

Only the "1.0", "1.0.0" and "1.0.0" Plugin API versions will be regarded as BC versions, and internally converted to "^1.0"; every other declared version string will be kept as it is.

Because of this new constraint flexibility, plugin version mismatches will be skipped, which means those plugin will NOT be registered to the system. Previously, a mismatch triggered a warning, but plugins were still registered.
9 years ago
Rob Bast 46e0a506b9 Added another testcase + fix 9 years ago
Rob Bast a0ca1d4d96 Consider 0 as part of a version 9 years ago
nevvermind 8e79a3766d Added phpdocs + change to yoda comparison 9 years ago
Rob Bast 95dbb6d9db add docs to support section in composer schema, closes #4055
Note that this does not yet add this attribute @ packagist though
9 years ago
Possum 2e99b9fdf5 Use https where possible 9 years ago
Jordi Boggiano 4ce0adb23c Use the caret operator for all require operations 9 years ago
Jordi Boggiano 43c1caad0d Merge remote-tracking branch 'Seldaek/caret-op-for-semver'
Conflicts:
	tests/Composer/Test/Package/Version/VersionSelectorTest.php
9 years ago
Jordi Boggiano a57c51e8d7 Finalize platform override feature
- Added tests, docs
- Persist to lock file
- Add support in config command
- Added to json schema
9 years ago
Jordi Boggiano fd7e28b8b4 Restore special handling of conflict/provide/replace 9 years ago
Vadim Tyukov b02bdb4c7a [alias] RootAliasPackage manages the requirements correctly 9 years ago
Marc Bennewitz ff1ce78e6b fixes #3976: drop ext/ctype dependency 9 years ago
Jordi Boggiano f41c1217f5 Merge pull request #3913 from hannesvdvreken/patch-2
Remove unused variable
9 years ago
Rob Bast 117b7ea033 Fixes #3900 9 years ago
Hannes Van De Vreken b85cb7df82 Remove unused variable 9 years ago
Jordi Boggiano 4d665f59b0 Create lock if we only have platform dependencies 9 years ago
Jordi Boggiano 0b4a9235f4 CS fixes 9 years ago
Felix Kiss b86f9bf4ba Update RootPackageInterface.php
Fix typo
10 years ago
Jordi Boggiano 53925295c3 Merge pull request #3699 from trivago/non_feature_branches
added non-feature-branches
10 years ago
rkerner abc9d60fcc added non-feature-branches to handle non-numeric branches matching configured patterns not been handled as feature branches 10 years ago
Chris Brand 87b7de4d0a Add the P character to the regex pattern
According to http://php.net/manual/en/function.preg-match.php and some other sources named groups should contain a 'P' character after the '?'

Without this, I receive the following error when running an update:

[ErrorException]
  preg_match(): Compilation failed: unrecognized character after (?< at offset 4

Exception trace:
 () at phar:///var/www/git/smmqa/app/admin/composer.phar/src/Composer/Package/Version/VersionParser.php:181
10 years ago
Jordi Boggiano cd38d1e096 Tweaks to also support 1.0-dev style aliases, refs #3480 10 years ago
Damian Mooyman 7bb85ff21e Support aliases for numeric branches. Fixes #3461 10 years ago
Jordi Boggiano 82b84f7a0a Fix formatting of constraint output 10 years ago
Christophe Coevoet d8813341c3 Support parsing stability flags on complex constraints
Fixes #3570
10 years ago
Nicolas Grekas e821ac2772 Persist prefer-lowest in composer.lock 10 years ago
Jordi Boggiano 10401d544b Avoid leftovers in temp dir 10 years ago
Jordi Boggiano d4523119ea Use caret operator for 0.x releases when guessing versions, fixes #3518 10 years ago
Jordi Boggiano 06e96a78e2 Update ranges for 0.N versions, refs #3518 10 years ago
Jordi Boggiano 9438f3a58f Use better semver ranges for 0.x versions, fixes #3518 10 years ago
Jordi Boggiano 92f4c1fb35 Allow and ignore semver build metadata, fixes #2422 10 years ago
Jordi Boggiano f363f9d370 Add support for caret (^) operator 10 years ago
Jordi Boggiano ebab9db27a Add support for hyphen ranges 10 years ago
Jordi Boggiano 69ef80124f Add support for capital X in 3.X and || for OR 10 years ago
Jordi Boggiano 4c713978e9 Add more tests and validate that there is only one comma 10 years ago
Jordi Boggiano ca168d478b Spaces are now equivalent to comma in constraints and mean AND 10 years ago
Jordi Boggiano 029f709300 Fix parsing stability suffixes in multi constraints, fixes #1732 10 years ago