Jordi Boggiano
e16caa9bd7
Add EmptyConstraint
11 years ago
Beau Simensen
ffd45b7678
Validate autoload options are of a supported type
...
Checks to ensure that the autoload options are one of the three supported
autoload types.
closes #952
11 years ago
Martin Hasoň
fa0d62ab6a
Settings of the same repository for a package is allowed.
11 years ago
Martin Hasoň
753a8345cb
Added support for the alias of an aliased package
11 years ago
Jordi Boggiano
069109e0f0
Add readme entry to lock file to explain what it is
11 years ago
Nils Adermann
57c34033ff
Merge pull request #1754 from njam/issue-1754
...
Fix file pattern start matching if no slash
11 years ago
Jordi Boggiano
b0297ef67a
Add prefer-stable flag to pick stable package over unstable ones when possible
11 years ago
Jordi Boggiano
fc54a48b52
Fix archiver tests on windows
11 years ago
Reto Kaiser
6f72e9570c
Add a / to the beginning of a file matchin pattern if no / in rule.
...
See https://www.kernel.org/pub/software/scm/git/docs/gitignore.html
11 years ago
Jordi Boggiano
6c9bc2824e
Fix handling of branches with slashes, fixes #1748
11 years ago
Jordi Boggiano
f5fececf53
Merge branch 'deprecatedlock'
11 years ago
Nils Adermann
8803281648
Make sure Phar overwrites files and doesn't load them
11 years ago
Nils Adermann
22044121ce
Callbacks must be accessible publically on PHP 5.3
11 years ago
Nils Adermann
43be72acb4
Follow PSR-2 for method modifier ordering
11 years ago
Nils Adermann
1af2be9d6d
Rename ExcludeFilterBase to BaseExcludeFilter
11 years ago
Nils Adermann
ecf4f42885
Use a FilterIterator rather than a modified IteratorIterator, simpler
11 years ago
Nils Adermann
75d1759e77
Replace DIRECTORY_SEPARATOR in paths, not PATH_SEPARATOR
11 years ago
Nils Adermann
6066359944
Skip directories in zip generation, empty dirs won't get archived
...
This seems ok as we currently rely on git generating archives which does
not archive empty directories either.
11 years ago
Nils Adermann
deae50392f
Respect gitignore, gitattributes and hgignore files in archiving
11 years ago
Nils Adermann
64941b0a64
Make overwriting files an ArchiveManager option, use sourceRef in names
11 years ago
Nils Adermann
6ee08a2046
Remove unecessary unlink before writing archive
11 years ago
Nils Adermann
074af5dc54
Remove unnecessary dist type information from archive files
11 years ago
Nils Adermann
935f7271f8
The ArchiveManager should return the written path for library usage
11 years ago
Nils Adermann
48dd55b759
Generate a properly unique archive filename for dev revisions
11 years ago
Nils Adermann
285603359c
Add a missing array typehint
11 years ago
Nils Adermann
ba375b6867
Allow archiving the current project with composer archive
11 years ago
Nils Adermann
afcdad4b23
Define an option to exclude files in the archive command
11 years ago
Nils Adermann
3e26502561
Remove Mercurial and Git Archivers as they cannot implement exclude rules
11 years ago
Nils Adermann
33828b38df
Use a saner file name for package archives
11 years ago
Nils Adermann
bcbc50c0d6
Git can handle commit references in git archive just fine so use them
11 years ago
Matthieu Moquet
9d24e17003
Fix workflow & typos
11 years ago
Matthieu Moquet
c248115e04
Fix how download manager is constructed
...
This fixes tests due to upstream changes.
The createDownloadManager in the Factory now takes the config as extra
parameter.
11 years ago
Matthieu Moquet
60b1cc7d24
Create ArchiveManager with the Factory
11 years ago
Matthieu Moquet
d1d77dd13d
Fixed several typos
...
- break at first archiver supports
- use standard directory separator
- change exception message
- remove the BaseArchiver since tar & zip archivers have been merged
- plus coding style
11 years ago
Matthieu Moquet
a733d76b33
Merged zip & tar archivers
11 years ago
Matthieu Moquet
b21bb1dcc5
Checks support before downloading the package
11 years ago
Matthieu Moquet
bfd2275cb0
Update interface to merge vcs with basic archivers
11 years ago
Matthieu Moquet
3b22791059
Checks process execution
11 years ago
Matthieu Moquet
20e717f975
Refactored the archiver package
11 years ago
Matthieu Moquet
3d0ce85db2
Moved archive Dumpers into its own Archiver package
11 years ago
Till Klampaeckel
2acb033057
Initial feature-dist
...
* extends BaseDumper, implements interface
* put $keys into BaseDumper
* WIP WIP WIP WIP
* BaseDumper for utilities
* interface to enforce 'dump()'
* feature:
* supports git
* supports zip output
* basic test to cover feature
* add @todo for later
* add vendor namespace to package name
* add extension to getFilename() so we don't need to switch in there (HT, @naderman)
* add extension (obviously 'zip' in ZipDumper)
* create archive in destination dir (provided by __construct())
* condensed ZipDumper
* moved code to BaseDumper (hopefully easier re-use)
* use ProcessExecutor from BaseDumper
* fix assignments in __construct()
* allow injection of ProcessExecutor
* fix parameters
* fix regex
* write in 'system temp dir'
* update test case (oh look, a duplicate regex)
* move working directory related to BaseDumper
* add quotes
* place holder for these methods
* use PharData to create zip/tar when necessary
* add placeholder calls
* add call to package() using PharData
* finish downloadHg(), downloadSvn()
* put to use
* make BaseDumper abstract (to force extension)
* make BaseDumper implement Interface (makes for less code in the implementation)
new functionality for dumping as .tar.gz
tar instead of tar.gz, new abstract dumpertest class
creates a local git repo instead of fetching a remote one
more oo-ish version of it
no constructor
* refactor tests to be less linux-specific (used Composer\Util to wrap calls)
* make filename only the version
* various cs fixes (idention, tabs/spaces, doc blocks, etc.)
* fixed a typo'd exception name
* refactored downloading:
* removed download*() methods
* added dep on Composer\Factory to setup a DownloadManager instance
* update CS with feedback from @stof
* ArrayDumper doesn't extend BaseDumper anymore (hence no conflict on the interface)
* move keys from BaseDumper back to ArrayDumper
* interface now declares dump() to always return void
Apparently I had to update the lock.
CS fixes (tabs for spaces)
Bugfix: sprintf() was missing.
Fix docblock for @stof. ;)
Pull in lock from master.
Update lock one more time (hope it still merges).
whitespace
Revert ArrayDumper static keys
11 years ago
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
12 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
12 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
Jordi Boggiano
d52feb1a9f
Merge remote-tracking branch 'digitalkaoz/issue_209'
13 years ago
Jordi Boggiano
d43dd33632
Add scripts loading
13 years ago
Jordi Boggiano
7add1001ae
Refactor scripts
13 years ago
digitalkaoz
30e89a2402
fixed broken packages on filesystem
13 years ago
Hugo Hamon
488928b9b5
[Package] removed unused local $key variable from VersionParser::parseConstraints() method.
13 years ago
Hugo Hamon
2d1ad6ca32
[Package] removed unused local $repositories variable from RootPackageLoader::load() method.
13 years ago
Jordi Boggiano
9630f44922
Fix errors in case packages is empty
13 years ago
Jordi Boggiano
56e43e4397
Add tests
13 years ago
Jordi Boggiano
462ebdf752
Detect lock file changes and warn users on install, fixes #75
13 years ago
Jordi Boggiano
6ac38f111d
Fix typo
13 years ago
Jordi Boggiano
719d3074f0
Dump bin info
13 years ago
Jordi Boggiano
5c8eb355ce
License now defaults to an empty array
13 years ago
Per Bernhardt
d78548cbf9
Added mercurial's "default" branch as a valid dev version (same as master / trunk).
13 years ago
Jordi Boggiano
f6b9488bf0
Move root package handling to a dedicated loader and make ArrayLoader more strict
13 years ago
Matthias Pigulla
737fe32f4d
Use {}for foreach
13 years ago
Matthias Pigulla
3bbe3306fc
Correctly dump link info
13 years ago
Jordi Boggiano
37df1a0d15
Fix self.version replacement
13 years ago
Jordi Boggiano
7e3f8099b1
Add proxy files for windows instead of copying, removed PEAR-style substitution
13 years ago
Jordi Boggiano
aa94918d50
Add binaries support in composer
13 years ago
Jordi Boggiano
b8a9bf7b60
Fix typo
13 years ago
Jordi Boggiano
e340022cce
Allow the use of self.version in package links
13 years ago
Jordi Boggiano
22858e81ef
Fix .* version constraints parsing to include nonstable versions
13 years ago
Jordi Boggiano
63d52b3e1b
Minor fixes to allow branch -dev versions
13 years ago
Jordi Boggiano
de111b73dd
Add homepage to MemoryPackage
13 years ago
Jordi Boggiano
aab9116f67
Add description to MemoryPackage
13 years ago
Jordi Boggiano
52a9014f1a
Add prettyConstraint on Links
13 years ago
Jordi Boggiano
a54ec23e38
Fix typo
13 years ago
Jordi Boggiano
a13c35537c
Add parsing of keywords/authors/release date to the ArrayLoader
13 years ago
Jordi Boggiano
3b8ee5dd54
Use pretty name/version in lock file and debug:packages, fixes #98
13 years ago
Jordi Boggiano
8e6f8ae57e
Add prettyVersion to packages, fixes #76
13 years ago
Jeremy Mikola
be6b748426
Fix reference to invalid branch name variable
13 years ago
Jordi Boggiano
f572bbb0bf
Allow JsonLoader to load by file name
13 years ago
Jordi Boggiano
1844940a39
Stricter validation for the repositories config
13 years ago
Jordi Boggiano
7493cf7654
Fix locked installs
13 years ago
Jordi Boggiano
36a724fa51
Search only for packages from the local repository in the locker
13 years ago
Jordi Boggiano
b100df33d8
Make ArrayDumper and ArrayLoader reversible
13 years ago
Jordi Boggiano
a263a3cb7d
Dont enforce optional fields
13 years ago
Jordi Boggiano
c03a739548
Use psr-0 instead of psr0
13 years ago
Jordi Boggiano
9b24734c9d
Add parsing and on-the-fly loading of repositories defined in packages
13 years ago
Jordi Boggiano
8a571c05db
Fix issues in new autoloader code
13 years ago
Jordi Boggiano
c8cfa15f52
Use wrapped PlatformRepository only in the Solver
13 years ago
Igor Wiedler
72a1f66b7a
rename installAs to target-dir
13 years ago
Igor Wiedler
ea31039556
[autoload] autoloading prototype
13 years ago
Jordi Boggiano
e09f6900da
Fix up version parsing
13 years ago
Jordi Boggiano
19f89069a4
Add some more version normalization and support for branch names
13 years ago
Jordi Boggiano
b3fe30200b
Remove validation for now since it's doing more harm than good
13 years ago
Jordi Boggiano
806c5f200a
Fix var name
13 years ago
Jordi Boggiano
e109213dfa
Merge remote-tracking branch 'everzet/json-abstraction'
13 years ago
Jordi Boggiano
9e3c2a7e22
Skip platform packages from the lock file
...
This should maybe be done in a better way, but it'll do for now.
13 years ago
everzet
1cca62dc97
move json parsing instructions into single class object
13 years ago
everzet
21191ffa00
refactored PackageLock to Locker and stabilized it
13 years ago
Igor Wiedler
2c1605925b
ArrayLoader should not use require content for all other properties
13 years ago
Jordi Boggiano
ebe2a25ec6
Merge remote-tracking branch 'wilmoore/feature/memory-package-test-refactor'
...
Conflicts:
src/Composer/Package/MemoryPackage.php
13 years ago
Jordi Boggiano
fda206400a
Fix constraint parsing
13 years ago
Jordi Boggiano
f48634d074
Add source/dist reference information to package
13 years ago
Wil Moore III
b70bb1a9bc
memory-package-test-refactor: refactored the memory package test to be a bit more DRY and "hopefully" re-usable in anticipation of more package types being adding in the future.
13 years ago
Jordi Boggiano
da6566b343
Minor improvements to VersionParser
13 years ago
Jordi Boggiano
2e10b5c17e
Expand normalization feature and adjust tests
13 years ago
Jordi Boggiano
46a67733f8
Adjust codebase to the new VersionParser
13 years ago
Jordi Boggiano
f761cfe525
Refactored VersionParser
13 years ago
Jordi Boggiano
544067ced9
Packages can't be added to two repos at once
13 years ago
Jordi Boggiano
c6d7760145
Merge branch 'refactoring'
13 years ago
Jordi Boggiano
5623f3e69c
Fix refactoring bugs
13 years ago
everzet
3c439ce41c
Added "type" field validator to ArrayLoader
13 years ago
everzet
5890b05eb0
Implemented ArrayDumper
13 years ago
everzet
17d1abcec0
Refactored DownloadManager
13 years ago
Jordi Boggiano
751f506080
Add info to docblocks
13 years ago
Jordi Boggiano
cd80f22781
Type is not mandatory
13 years ago
Jordi Boggiano
d27691a67f
Fix namespace/use/typo issues
13 years ago
everzet
69f1de9986
Enhanced PackageInterface and BasePackage with getUniqueName() method, which provides name-version-releaseType string (used in installer registry)
13 years ago
everzet
9deb10361f
second batch of refactoring
13 years ago
everzet
6caa77fbbf
installer refactoring
13 years ago
everzet
5f4d46f7ae
repository factoring refactoring
13 years ago
everzet
1e1ecb80b7
initial refactoring
13 years ago
Jordi Boggiano
07e181c6eb
Fix lowercase behavior
13 years ago
pborreli
f7735c396f
[Composer] Fixed typos
13 years ago
Igor Wiedler
9e8fc71870
Make package names and downloader/installer/repository types case insensitive
13 years ago
Jordi Boggiano
2b77710515
RC versions don't need a number
13 years ago
Jordi Boggiano
ba9f12a517
Add extra and type info to packages
13 years ago
Nils Adermann
b1d16a88b7
Test a replace link with a null constraint between packages
13 years ago
Nils Adermann
6cf8d3888c
Use version contraints in the default policy rather than hardcoded version_compare
13 years ago
Nils Adermann
03642a40b4
Handle the = comparison operator for versions the same as ==
13 years ago
Jordi Boggiano
64978d40ba
Add dist properties to the Packages
13 years ago
Jordi Boggiano
d6ae5ddf35
Add 'dev' flag to version parser
13 years ago
Nils Adermann
2e41993822
Update solver to use PackageInterface and store pool package ids inside of packages
13 years ago
Jordi Boggiano
56da52d38f
PlatformRepository now adds packages for every loaded php extension as well
13 years ago
Jordi Boggiano
575e520931
Fix MultiConstraint::__toString
13 years ago
Jordi Boggiano
1edb22034d
Fix CS
13 years ago
Jordi Boggiano
b620405ab0
Adjusted BasePackage::__toString()
13 years ago
Jordi Boggiano
27f02aba7d
Fix version check in BasePackage
13 years ago
Jordi Boggiano
14b3325347
Fix version parsing
13 years ago
Jordi Boggiano
b53a3086b6
Minor refactorings and changes
13 years ago
Nils Adermann
9b8ab7d710
Fix SpecificConstraint which only handles matching of instances of same constraint
13 years ago
Nils Adermann
d5dd86cd75
Correct version contraint matching and add tests for various cases
13 years ago
Nils Adermann
8c9f8fb86f
Rename RelationConstraints to Links in the Package namespace.
...
Constraints have been generalised to allow matching requiring and providing
constraints against each other.
13 years ago
Jordi Boggiano
c6321e7277
Fix tests and invalid use statements
13 years ago
Jordi Boggiano
3da43e751d
Update naming of repositories
13 years ago
Jordi Boggiano
6dbec8718d
Remove contains() from RepositoryInterface
13 years ago
Jordi Boggiano
f0e709ad09
Minor cleanups, add license property to the PackageInterface
13 years ago
Jordi Boggiano
8ab98a8b5d
Fix class name
13 years ago
Jordi Boggiano
bb5e59e30f
Add type/repositoryType and repositoryUrl package properties
13 years ago
Jordi Boggiano
1d5f5885bc
Remove useless abstract methods, interface is enough
13 years ago
Jordi Boggiano
7ea2fd6c93
Fix author/copyright
13 years ago
Nils Adermann
3a851b4059
Define an interface for packages and move package code to separate namespace.
...
Ids are no longer needed, they are internal to the solver and not a part of
packages.
13 years ago