454 Commits (d77400ade29b087e4d0a726859d7760fd3c971c8)

Author SHA1 Message Date
Jordi Boggiano 7e4ca7638c Remove support for deprecated lock format 11 years ago
deguif 655dc5f2e8 Fixed CS 11 years ago
thomas-gay 8534ab1dad Fixed potential undefined index in ArrayLoader.php
A source without a reference is invalid.
11 years ago
deguif 834f0b49e5 Improved error messages in ArrayLoader
Added package name to exception message when an error occurred in source or dist keys
11 years ago
Jordi Boggiano ea7d79ab03 Make sure platform requirements of the root package are enforced when installing from lock, fixes #1611 11 years ago
Jordi Boggiano 4207fc3b19 Refactor require-dev handling to use one single repository and a one pass solving, fixes #719, fixes #1185, fixes #1330, fixes #789, fixes #640 11 years ago
Jordi Boggiano c29f3c698e Fix support of aliases combined with reference locked packages, fixes #1631 12 years ago
Shane Auckland c6c521bfae optimizing loops 12 years ago
Jordi Boggiano 0525297ff5 Always move time to the end of the package spec in the lock file, fixes #1498 12 years ago
Jordi Boggiano b7cd971b06 Merge pull request #1598 from fabpot/package-time-fix
fixed time parsing when the composer.lock file has an old time format
12 years ago
Fabien Potencier ab4e3fbf86 fixed time parsing when the composer.lock file has an old time format 12 years ago
Jordi Boggiano 97dfbefa72 Add support for arbitrary values for the references in version constraints 12 years ago
Jordi Boggiano 908d2d91da Fix case insensitive matching 12 years ago
perprogramming 9219e1ab0a Simplify ordering of links (there cannot be multiple links to the same target) 12 years ago
perprogramming 704837c574 - Sort links and keywords in ArrayDumper result (fixes issue #1499)
- Adapt ArrayDumperTest
12 years ago
Jordi Boggiano 5a4c720535 Add another missing use statement, fixes #1521 12 years ago
Jordi Boggiano 1539c54a1d Merge pull request #1523 from deguif/master
Moved setter for repository before getter in BasePackage class
12 years ago
Jordi Boggiano 958ffd8e8b Add missing use statement, fixes #1521 12 years ago
deguif 3c21dc1499 Moved setter before getter and added @inheritDoc 12 years ago
Christoph c84d3d5937 replicate the git behvaiour to resolve a feature's version for mercurial 12 years ago
Christoph d84484b49d added hg support for Package\Locker 12 years ago
Jordi Boggiano cea4c05021 Fix parsing of ~ version constraint with unstable versions, fixes #1476 12 years ago
Jordi Boggiano 1356021cb9 Remove installation-source from lock file, fixes #1464 12 years ago
Jordi Boggiano 514a3cde77 CS fixes 12 years ago
Jordi Boggiano 8af6581bdf Make sure only proper timestamps are used for the lock, refs #1390 12 years ago
Daniel Bojdo 11880f016f Update src/Composer/Package/Locker.php
There were some cases when result of execute was 0 but output was empty string. 
It causes an exception in line 295 (create DateTime object from "@" string).
12 years ago
Jordi Boggiano 977fc3241c Clarify exception messages when invalid versions are detected in aliases 12 years ago
Jordi Boggiano a8f74a0983 Allow notification from locked installs, fixes #1368, fixes #1372, fixes #1369 12 years ago
Jordi Boggiano dee9bcb9f1 Add --stability and support for package:version and package=version to create-project, fixes #957 12 years ago
Jordi Boggiano da5ee6e2d7 Add warning for invalid chars in package names 12 years ago
Jordi Boggiano 326fcbcab7 Enforce UTC on all datetime instances, set lock release date to datetime always, refs #923 12 years ago
Jordi Boggiano 03b9d73af5 Fix proc_open failure, fixes #1346 12 years ago
Benjamin Eberlei 5e12da0203 Skip locking dev package to time when proc_open does not exist on system. 12 years ago
Jordi Boggiano ec7088aba5 Downgrade severity of branch-alias validation failure to warning 12 years ago
Jordi Boggiano 4f5d08e2ad Add InvalidRepositoryException 12 years ago
Jordi Boggiano bb685d9c7f Fix license validation and add feedback of values to ease reading 12 years ago
Jordi Boggiano cbd91b5952 Fix FILTER_VALIDATE_URL not supporting IDNs 12 years ago
Jordi Boggiano e05391dc44 Improve validating array loader to avoid false positives 12 years ago
Jordi Boggiano 967c771b26 Add warnings to ValidatingArrayLoader that are simply stripped by default, add reporting of warnings when loading branches 12 years ago
Jordi Boggiano a80001ad97 Allow running the validating array loader with multiple packages 12 years ago
Jordi Boggiano 4b531771bd Add validators for package links and minimum-stability 12 years ago
Pascal Borreli 83fd3967f0 Fixed PHPDoc 12 years ago
Jordi Boggiano 85671021c3 Clear id when cloning 12 years ago
Jordi Boggiano 233bdb3863 Use proper pretty string for the aliased constraint 12 years ago
Jordi Boggiano 573e4b2a7c Merge branch 'newrepo' 12 years ago
Jordi Boggiano a59a5c4581 Merge remote-tracking branch 'simensen/sem-version-support' 12 years ago
Jordi Boggiano 44c271a477 Merge remote-tracking branch 'simensen/less-than-dev' 12 years ago
Jordi Boggiano 3742459a41 Infer stability flags and parse references for aliased packages as well 12 years ago
Jordi Boggiano ee0cd07468 CS fixes 12 years ago
Jordi Boggiano 61a3c50436 Fix version guessing when used on feature branches 12 years ago
Jordi Boggiano beb9a5bd72 Code optimizations: avoid loops in match() 12 years ago
Beau Simensen 081ead1635 Version Parsing: Consider <x.y.z to be <x.y.z-dev
> Consider `<x.y.z` to be `<x.y.z-dev.` Because in 99%
> of the cases that's what the intent is. Could be
> overriden with `<x.y.z-stable`.

- @Seldaek

refs #643
12 years ago
Beau Simensen 96a76eeffc Semantic Version Parsing: ~version
Implemented `~` according to #643 and used the following versions
as a test case as defined by @Seldaek:

 * "~1.2.3.4" = ">=1.2.3.4 <1.2.4.0-dev"
 * "~1.2.3" = ">=1.2.3 <1.3.0-dev"
 * "~1.2" = ">=1.2.0 <2.0.0-dev"
 * "~1" = ">=1.0.0 <2.0.0-dev"

Refs #643
12 years ago
Jordi Boggiano 62bb5b339b Allow parsing of stability modifiers combined with multi-constraints 12 years ago
Jordi Boggiano ce31449b2d Fix calls to non existing method, fixes #1154 12 years ago
Jordi Boggiano ba2d7081bc Merge remote-tracking branch 'origin/master' 12 years ago
Jordi Boggiano beb8e0ab97 Update dist reference as well as source ref 12 years ago
Jordi Boggiano a9afa8bc1f Merge remote-tracking branch 'mheleniak/prefer_dist' and fix dists
Conflicts:
	src/Composer/Installer.php
	src/Composer/Package/Locker.php
12 years ago
Chris Smith 8961c687ee Fix unintentional manipulation of release dates 12 years ago
Martin Hasoň 29034ea3e0 Added support for the root package in the array dumper 12 years ago
Jordi Boggiano 8d7e5cdda5 Fix target-dir with multiple slashes too 12 years ago
Jordi Boggiano f377e9ca87 Fix possible vendor-dir "evasion" via target-dir 12 years ago
Jordi Boggiano 536563dc2a Rename method 12 years ago
Jordi Boggiano 418e876e8a Use only the locked repository when possible for better performance 12 years ago
Jordi Boggiano 83239aa338 Update lock file to contain the complete package info, fixes #890 12 years ago
Jordi Boggiano 5b9f190bcd Make sure invalid authors are purged 12 years ago
Jordi Boggiano 10d1a4382f Only generate lock file when actually necessary, fixes #1064 12 years ago
Jordi Boggiano 0932f65a17 Return 7 chars and not 6 for short git hashes, formatting fixes 12 years ago
Jordi Boggiano 338730b19b Merge remote-tracking branch 'zczapran/issue/1043_wrong_output_for_versions_when_updating' 12 years ago
Jordi Boggiano e01a9c564d Fix parsing of stability for lowercased RC versions 12 years ago
Mateusz Heleniak 6489487245 compare references when using dists 12 years ago
Zbigniew Czapran 8d966547a2 removed overkill function isHash as suggested by @stloyd 12 years ago
Zbigniew Czapran c0c23033d5 simplified if statement 12 years ago
Zbigniew Czapran 730f206cea removed unneccesary PackageMock and trailing whitespaces 12 years ago
Zbigniew Czapran 80c2736021 in VersionParser only truncate the version if hash 12 years ago
Jordi Boggiano 9965f02951 Clean up link creation 12 years ago
Jordi Boggiano d6de4a0036 Rename Package interfaces to reduce BC issues 12 years ago
Jordi Boggiano 8a275336a1 CS cleanups 12 years ago
Jordi Boggiano 26e8217db7 Remove duplication of branch alias parsing code 12 years ago
Jordi Boggiano 2d4076e9b2 Add support for aliases in streamed repos 12 years ago
Jordi Boggiano c8a685be6b Reduce memory usage by only loading packages that are actually needed, fixes #456 12 years ago
Jordi Boggiano ef637c8f1a CS fixes 12 years ago
Jordi Boggiano fe15c6a827 Make dev version matches preserve the proper case, fixes #935 12 years ago
Jordi Boggiano 198a40fc63 Quote version in output to highlight empty versions 12 years ago
Jordi Boggiano e618648f62 Define property before use 12 years ago
Jordi Boggiano 520d915860 Merge pull request #917 from simensen/package-links
Get links from the pacakge
12 years ago
Jordi Boggiano c65af3e3a1 Add ValidatingArrayLoader and more validation for the validate command 12 years ago
Nils Adermann 84dd1fc1bf Merge pull request #898 from Seldaek/providefix
Fix hijacking possibility via provide bug
12 years ago
Beau Simensen 2e9f57b6dd Get links from the pacakge 12 years ago
Kirill chEbba Chebunin 75d756f665 Add getSupport method to the PackageInterface. 12 years ago
Jordi Boggiano d87b8d3493 Merge pull request #886 from palex-fpt/pear-binaries
Pear binaries
12 years ago
Nils Adermann 560c3254d4 Correctly treat dev versions for other types of comparisons and add tests 12 years ago
Nils Adermann bbdbfc97ea Remove useless ternary operator 12 years ago
Jordi Boggiano 2f7130200a Prevent seeing dev versions as equal when they are not, fixes #848 12 years ago
Jordi Boggiano 2d19cf2a00 Fix hijacking possibility via provide bug 12 years ago
Alexey Prilipko 75d3d57117 Version parser stability regexp update 12 years ago
Jordi Boggiano e6f7150196 Change default minimum-stability to "stable", fixes #744 12 years ago
Robert Schönthal c517ac6404 fixed issue #347 added file to json validation exception 12 years ago
Alexey Prilipko 22aef0124e Revert Locker change, ignore PEAR packages whose version cannot be parsed. 12 years ago
Alexey Prilipko 0117108efb Fix Locker to store exact package version. 12 years ago
Jordi Boggiano ffecd39d33 Refactor repositories handling in config/factory/loader, fixes #828, fixes #826 12 years ago
Jordi Boggiano 3ac11b932c Expose default repositories in system config file 12 years ago
Jordi Boggiano 4a6ae454c2 Merge remote-tracking branch 'dpb587/multiple-repos'
Conflicts:
	src/Composer/Factory.php
	src/Composer/Package/Loader/RootPackageLoader.php
	tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php
12 years ago
Jordi Boggiano 66e9dcddf4 CS fixes 12 years ago
Jordi Boggiano 6e90c0be51 CS fixes 12 years ago
Jordi Boggiano 4fcc114f97 Merge pull request #808 from palex-fpt/not-equal-operator
Add '<>' operator to Version Parser
12 years ago
Nils Adermann cb27a1f308 Merge pull request #812 from Seldaek/recover-refs
Recover to an older commit if a locked reference is not found
12 years ago
Nils Adermann cc7632489d Make problem report messages more readable
Added pretty strings to constraints
12 years ago
Jordi Boggiano 73a865bf2a Fix tests 12 years ago
Jordi Boggiano c9ef7479c4 Keep track of commit dates in the lock file in case the reference disappears 12 years ago
Jordi Boggiano 4bbb168d44 Remove BC code 12 years ago
Alexey Prilipko 9f08764e9a Add '!=' handling to VersionConstraint::matchSpecific 12 years ago
Alexey Prilipko e130386612 Add '<>' operator for Version Parser 12 years ago
Christophe Coevoet 398a3ac0dc Made the order of aliases deterministic in the locker 12 years ago
Nils Adermann 5bea5974f7 Improve error messages for solver problems 12 years ago
Jordi Boggiano 1aa2cfe6e1 Fix unitialized git repo, fixes #758 12 years ago
Martin Hasoň 09f774c705 Added test if proc_open function is enabled in RootPackageLoader 12 years ago
Christophe Coevoet b634659695 Fixed undefined variable when no branch match.
Closes #756
12 years ago
Jordi Boggiano 57c3359bdb Small fixes to the version guessing 12 years ago
Jordi Boggiano 03ded63924 Root version detection improvement, fixes #748 12 years ago
Jordi Boggiano d56c996622 Remove source-refs from lock file for alias packages 12 years ago
Jordi Boggiano c694bd57a3 Merge remote-tracking branch 'digitalkaoz/issue_397' 12 years ago
Nils Adermann 41215a0e47 Require first version of a root package alias, rather than alias
This makes sure that the alias will always be installed, even if it isn't
technically needed.
12 years ago
Jordi Boggiano 5498b8d6a0 Add COMPOSER_ROOT_VERSION env var to override the root version 12 years ago
Jordi Boggiano c440b4594a More PSR-2 goodness 12 years ago
Jordi Boggiano 99513ba52b Adjust output for create project, refs #724 12 years ago
Jordi Boggiano 713309b38c Show exact version being installed in create-project, fixes #724 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 12 years ago
Jordi Boggiano c10eb66ac4 Ignore references when parsing dev versions 12 years ago
Jordi Boggiano ba29b4bf94 Added references for dev versions, fixes #599
dev-<branch> and <n.m>.x-dev versions can now have a #<reference> appended
to them. This reference being a git/hg commit hash, or svn revision.
12 years ago
Tom Klingenberg 296123db26 CS Fixes 12 years ago
Jordi Boggiano 453b9a616b Add test for Pool handling and refactor a couple things 12 years ago
Jordi Boggiano 0936670213 Add support for stabilities in lock file 12 years ago
Jordi Boggiano a3018c43eb Infer stability flags for requirements that have an explicit version required of a lower stability 12 years ago
Jordi Boggiano ef28f3b067 Basic handling of stability flags 12 years ago
Jordi Boggiano 1aaae5284b Add list of stabilities to base package 12 years ago
Jordi Boggiano 66068fedcb Add minimum-stability flag on root package to filter packages by stability 12 years ago
Jordi Boggiano 70a3c68f73 Add package stability 12 years ago
Jordi Boggiano 872293e8af Remove special handling of root package branch-aliases 12 years ago
Jordi Boggiano 45a2070fee Add BC warning for older lock files 12 years ago
Nils Adermann bd9aa6a288 Undo pointless changes in ArrayDumper 12 years ago
Nils Adermann 0c1944a9d0 Let the solver handle aliases instead of the installer 12 years ago
Nils Adermann 157b0bdecc Merge pull request #648 from fabpot/fix-version
Fix for when the version is explicitely set in the composer.json file

Fixes #647
12 years ago
Fabien Potencier 0923025455 Fix for when the version is explicitely set in the composer.json file 12 years ago
Nils Adermann efae2c8829 Alias root packages added in a4c2337 need to report composer.json alias info 12 years ago
Jordi Boggiano a4c2337433 Load root packages as aliases if they are aliased so that they replace everything 12 years ago
Jordi Boggiano adb4188e12 Add detection of the current version from git if possible 12 years ago
Jordi Boggiano 66dc17bf39 Avoid adding duplicate aliases 12 years ago
Danny Berger 8d6d155153 Add internal support for multiple default composer repositories. 12 years ago
Nils Adermann 540f9a09b2 Merge pull request #606 from Seldaek/aliasprio
Fix priority of aliases when mixing root package aliases with branch-alias ones, fixes #576
12 years ago
Jordi Boggiano cc3d91f75c Make sure aliased packages created by the locker are available in the pool 12 years ago
Jordi Boggiano 6a50dbd46d Error out on wrong bin config 12 years ago
Jordi Boggiano 06fb1b8083 Fix priority of aliases when mixing root package aliases with branch-alias ones, fixes #576 12 years ago
Jordi Boggiano 870d745475 Show real version instead of self.version in suggest 12 years ago
Jordi Boggiano 7312c62c5d Fix lock handling of aliases 12 years ago
Jordi Boggiano a1306091f2 Fix locking behavior with --dev 12 years ago
Jordi Boggiano 89e095b4b5 Handle --dev installs/updates 12 years ago
Jordi Boggiano 53191eb0fe Remove recommend, make suggest informational, add require-dev, fixes #78, fixes #510 12 years ago
Jordi Boggiano 595182aec0 Add/fix tests 12 years ago
Jordi Boggiano 2d49090ffd Make sure branches have proper .x suffix so that they can be parsed properly 12 years ago
Jordi Boggiano 8654c43c62 Fix version parser regression, fixes #550 12 years ago
Kirill chEbba Chebunin 7c8290e968 Fix return values for getLicense and getBinaries 12 years ago
Jordi Boggiano 3c07b4338a Rename include-paths to include-path, add deprecated warnings, only generate file if it is needed 12 years ago
Jordi Boggiano 91614af365 Merge remote-tracking branch 'CHH/feature/include-paths' 12 years ago
Jordi Boggiano f604ca5762 Allow .x in version constraints as alias for .* 12 years ago
Jordi Boggiano 32e86ba410 Fix lockfile 12 years ago
Tiago Ribeiro 13839bf52c "Writing lock file" message is only displayed if locker isn't fresh 12 years ago
Christoph Hochstrasser f369104bb1 Packages can define include paths. 12 years ago
Jordi Boggiano 366176fc73 Add cache to the lock file reading 12 years ago
Jordi Boggiano ceac0ca75b Fix updating of already installed dev packages, fixes #496 12 years ago
Jordi Boggiano ab55490254 Merge remote-tracking branch 'hason/metapackage' 12 years ago
digitalkaoz 20ae7efa2b fixed CS 12 years ago
digitalkaoz 7bbe60459f added source key, and support section to arraydumper 12 years ago
digitalkaoz 7cdb793b40 added support section to composer.json 12 years ago
Jordi Boggiano b855643865 Usability fix 12 years ago
Martin Hasoň 736ea800e3 Added isDev method to the VersionParser class 13 years ago
Jordi Boggiano f999285926 Avoid duplicating self.version requirements 13 years ago
Jordi Boggiano 35aa82ada8 Prevent multiple replaces of a same package to be skipped when the first fails to match 13 years ago
Jordi Boggiano c425b8b6cb Prevent a package from having duplicate names 13 years ago
Jordi Boggiano ca8845f44f Fix toString of aliases 13 years ago
Jordi Boggiano 0b7ee194c6 Remove persistence of alias data, make abstract branch aliasing and keep it in composer only 13 years ago
Martin Hasoň 528a058e40 Added installer for metapackages 13 years ago
Jordi Boggiano 1bdab5c4c8 Add markers for leftover problems 13 years ago
Jordi Boggiano 1228c04984 Add support for extra.branch-alias config to remap master on 2.1.x for example 13 years ago
Jordi Boggiano 0daa6c2dc9 Force dates to be UTC 13 years ago
Jordi Boggiano 59d2b1145c Add lock file alias support and a bunch of fixes 13 years ago
Jordi Boggiano f9fc9695e9 Wrap the package in an aliased package instead of replacing 13 years ago
Jordi Boggiano 82054f2060 Add aliasing: `foo as bar` will require foo and automatically make it replace the bar version 13 years ago
Jordi Boggiano afbb9cefa4 Adjust version parser so it persists self.version references 13 years ago
Jordi Boggiano 9ba0505751 Make sure lock file is sorted, fixes #276 13 years ago
Nils Adermann 03a9e0dfee Merge pull request #330 from Seldaek/repositories
[BC Break] Refactor repositories configuration
13 years ago
Jordi Boggiano 44e76e06fc Refactor repositories configuration 13 years ago
Jordi Boggiano c95b4d05fd Fix forcing of the source-ref from lock file 13 years ago
Jordi Boggiano 646d01658a Rename source_ref to source-ref 13 years ago
Jordi Boggiano d7350b66d5 Ensure dev packages have a source 13 years ago
Jordi Boggiano 496188f714 Force installs from lock to reinstall dev packages from the exact locked reference 13 years ago
Jordi Boggiano c1baa20fec Lock reference of dev packages 13 years ago
Jordi Boggiano 3fe87b1e35 Force dev packages to be installed from source 13 years ago
Jordi Boggiano 3e6176eccf Update version parser to support any branch name 13 years ago
Martin Hasoň 01be62d842 Updated ArrayDumper 13 years ago