Jordi Boggiano
32cd883daa
Rename options to transport-options, refs #2189
10 years ago
Jordi Boggiano
31092843fd
Only load options when they come from the lock file, not from standard metadata, refs #2189
10 years ago
Jordi Boggiano
016a016455
Merge remote-tracking branch 'lcobucci/master'
...
Conflicts:
src/Composer/Downloader/FileDownloader.php
10 years ago
Jordi Boggiano
e7b82cdd88
Only check in require and for non-platform packages, add flag to make this warning optional, refs #2320
11 years ago
Jordi Boggiano
e0004d0656
Merge remote-tracking branch 'stof/validate_unbound_constraints'
11 years ago
Eric Stern
634d1aba63
Add @generated annotation to lockfile readme, giving a hint for linters and other static analysis tools
11 years ago
Sandy Pleyte
3e161e8ea9
Updated the regexp and added an other test case for sub dirs
11 years ago
Sandy Pleyte
1d51e54a31
Updated the regexp and added more test cases.
11 years ago
Sandy Pleyte
21109ada22
Fix for #2739 (and #1755 ), added support for directory excludes in the .gitignore file like /directory or directory/
11 years ago
Zbigniew
a4a9d0f0e4
[Archiver] Rules in GitExcludeFilter are too broad
11 years ago
Jan Prieser
d57e2b9ffb
added ZipArchiver to actually compress zip files
11 years ago
Jordi Boggiano
b23742e30c
Merge remote-tracking branch 'donquixote/feature/psr4-complete'
11 years ago
Luís Otávio Cobucci Oblonczyk
0f2c0ab389
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
src/Composer/Downloader/FileDownloader.php
11 years ago
Pascal Borreli
2f4df9d459
Fixed typos
11 years ago
Andreas Hennings
e4bbd83f13
expected message in ValidatingArrayLoaderTest should also contain psr-4 as allowed key.
11 years ago
Jordi Boggiano
80499bb024
Detect ~> misuse and suggest fix, fixes #2476
11 years ago
Morgan BRUNOT
ca7cb68dd5
Check exclude from downloaded composer.json
11 years ago
Christophe Coevoet
6cc95c43e3
Add a warning for unbound constraints in the validating loader
...
Closes #2165
11 years ago
Jordi Boggiano
11a0d16ccc
CS fixes
11 years ago
Jordi Boggiano
38917c2047
Add parallel build to travis script
11 years ago
Luís Otávio Cobucci Oblonczyk
8630aab93f
Package options must be a non mandatory array and should be loaded when
...
exists
11 years ago
Luís Otávio Cobucci Oblonczyk
28d0e08785
Package options should be dumped if exists
11 years ago
Jordi Boggiano
0044c75ca0
Fix detection of tags when the current tag is not a valid version
11 years ago
Jordi Boggiano
8b293633ae
Merge remote-tracking branch 'simensen/non-dev-version'
...
Conflicts:
src/Composer/Package/Loader/RootPackageLoader.php
tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php
11 years ago
Jordi Boggiano
f59f443fce
CS fixes and one more test for safety, fixes #1855
11 years ago
Jordi Boggiano
533512879e
Merge remote-tracking branch 'sminnee/fix-tilde-constraint-stabililty'
11 years ago
Jordi Boggiano
bd345c3b43
Add IO to proc executor in a few more places to get more debug info out
11 years ago
Jordi Boggiano
af1f5a3423
Merge pull request #2091 from jaypea/archivemanager
...
cleanup temporary download location when archiving
11 years ago
Jordi Boggiano
d740f50277
Fix parsing of inferred stability flags that are more stable than the min stability
11 years ago
Jan Prieser
c6db86e444
cleanup temporary download location when archiving
11 years ago
Jordi Boggiano
8d0b7f278e
CS fixes
11 years ago
Jordi Boggiano
e848c76cbc
Only compare branches as versions in the policy to sort packages, but not in the solver, fixes #1817
11 years ago
Beau Simensen
215556df7c
Use --tags to get non-annotated tags as well.
11 years ago
Beau Simensen
f9fe39e624
Fixed the existing test and added a new one for git tag version guessing.
11 years ago
Sam Minnee
324ef0f9bb
Fixed upper bound of wildcard matches.
...
Follow-on from 95b4348afa
11 years ago
Sam Minnee
95b4348afa
Fixed lower bound of tilde and wildcard matches.
...
The lower bound of ~1.2 and 1.2.* style version requirements now uses >= 1.2.0.0-dev instead of
> 1.1.9999999.9999999. This is more straightforward to read, and behaves equivalently.
11 years ago
Sam Minnee
34a21516c8
Fix tilde constraints without a stability suffix to work like wildcard constraints.
...
With this fix, a tilde constraint such as ~3.1 won't match unstable versions of 3.1,
but a wildcard constraint such as 3.1.* would. This seems like a confusing
inconsistency, and so I have corrected it.
11 years ago
Jordi Boggiano
9d948eb795
Merge branch 'disjunctive'
11 years ago
Jordi Boggiano
faa419cc0e
Merge remote-tracking branch 'hason/alias'
12 years ago
Jordi Boggiano
0cccafbe81
Add disjunctive multi-constraints with |, refs #643 , fixes #1342
12 years ago
Jordi Boggiano
e16caa9bd7
Add EmptyConstraint
12 years ago
Jordi Boggiano
3aa7843146
Use ExecutableFinder instead of relying on exit codes, refs #1829
12 years ago
Jordi Boggiano
91db9d920b
Merge remote-tracking branch 'RobLoach/versioncontrolnotfound'
12 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
12 years ago
Rob Loach
692c63cdd2
Fix for tests when Mercurial or git are not available
12 years ago
Martin Hasoň
fa0d62ab6a
Settings of the same repository for a package is allowed.
12 years ago
Martin Hasoň
753a8345cb
Added support for the alias of an aliased package
12 years ago
Jordi Boggiano
069109e0f0
Add readme entry to lock file to explain what it is
12 years ago
Jordi Boggiano
1f79f36227
Add a couple version parser tests
12 years ago
Nils Adermann
57c34033ff
Merge pull request #1754 from njam/issue-1754
...
Fix file pattern start matching if no slash
12 years ago
Jordi Boggiano
fc54a48b52
Fix archiver tests on windows
12 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
12 years ago
Reto Kaiser
918a55659e
Call realpath() on result of sys_get_temp_dir()
...
On OSX the temp dir is within /var, which is a symlink to /private/var.
If this is not resolved, the comparison will fail when comparing to the result of `git archive` in testGitExcludes().
12 years ago
Jordi Boggiano
bf307de1d6
Fix tests
12 years ago
Nils Adermann
4af69c85ca
Fix tests by passing proper working directory to processes
12 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.
12 years ago
Nils Adermann
deae50392f
Respect gitignore, gitattributes and hgignore files in archiving
12 years ago
Nils Adermann
afcdad4b23
Define an option to exclude files in the archive command
12 years ago
Nils Adermann
3e26502561
Remove Mercurial and Git Archivers as they cannot implement exclude rules
12 years ago
Nils Adermann
33828b38df
Use a saner file name for package archives
12 years ago
Nils Adermann
bcbc50c0d6
Git can handle commit references in git archive just fine so use them
12 years ago
Nils Adermann
ba51027680
Reorder ArchiveManager parameters to make the download manager optional
12 years ago
Matthieu Moquet
a2b404e421
Cleaned archiver tests
12 years ago
Matthieu Moquet
9d24e17003
Fix workflow & typos
12 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.
12 years ago
Matthieu Moquet
60b1cc7d24
Create ArchiveManager with the Factory
12 years ago
Matthieu Moquet
a733d76b33
Merged zip & tar archivers
12 years ago
Matthieu Moquet
bfd2275cb0
Update interface to merge vcs with basic archivers
12 years ago
Matthieu Moquet
2fd17ecff8
Changed Package class due to upstream changes
12 years ago
Matthieu Moquet
20e717f975
Refactored the archiver package
12 years ago
Matthieu Moquet
3d0ce85db2
Moved archive Dumpers into its own Archiver package
12 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
12 years ago
Jordi Boggiano
ea7d79ab03
Make sure platform requirements of the root package are enforced when installing from lock, fixes #1611
12 years ago
Christian Riesen
6f5ab3ed5c
Add other valid versions to test for stability
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
704837c574
- Sort links and keywords in ArrayDumper result (fixes issue #1499 )
...
- Adapt ArrayDumperTest
12 years ago
Jordi Boggiano
cea4c05021
Fix parsing of ~ version constraint with unstable versions, fixes #1476
12 years ago
Igor Wiedler
e7c7e2f70d
Consistently describe composer as dep mgr as opposed to package mgr
...
Closes #1207 .
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
4b531771bd
Add validators for package links and minimum-stability
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
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
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
a9195eb05f
Add a couple test cases
12 years ago
Jordi Boggiano
f377e9ca87
Fix possible vendor-dir "evasion" via target-dir
12 years ago
Jordi Boggiano
83239aa338
Update lock file to contain the complete package info, fixes #890
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
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
d6de4a0036
Rename Package interfaces to reduce BC issues
12 years ago
Jordi Boggiano
fe15c6a827
Make dev version matches preserve the proper case, fixes #935
12 years ago
Jordi Boggiano
c65af3e3a1
Add ValidatingArrayLoader and more validation for the validate command
12 years ago
Kirill chEbba Chebunin
c62d4179b3
Remove unnecessary use statement from ArrayDumperTet
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
Jordi Boggiano
2f7130200a
Prevent seeing dev versions as equal when they are not, fixes #848
12 years ago
Alexey Prilipko
75d3d57117
Version parser stability regexp update
12 years ago
Alexey Prilipko
22aef0124e
Revert Locker change, ignore PEAR packages whose version cannot be parsed.
12 years ago
Alexey Prilipko
ac3cebc633
Update PEAR Package Extractor to use 'task:replace', 'phprelease' commands and install role='script' files
...
Add PearInstaller
Change PEAR packages type from 'library' to 'pear-library' and dist type from 'pear' to 'file'
Remove PearDownloader
Refactor Channel Installer
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
4fcc114f97
Merge pull request #808 from palex-fpt/not-equal-operator
...
Add '<>' operator to Version Parser
12 years ago
Nils Adermann
a756f7f880
Merge pull request #798 from cs278/dev-hash-detached-head
...
Ensure composer works with a detached head
12 years ago
Jordi Boggiano
73a865bf2a
Fix tests
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
Grégoire Pineau
f4e9dd4fb8
Fixed PSR rules
12 years ago
Chris Smith
5e4b2fcc8d
Test for detached heads yielding an invalid version
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
c10eb66ac4
Ignore references when parsing dev versions
12 years ago
Jordi Boggiano
0936670213
Add support for stabilities in lock file
12 years ago
Jordi Boggiano
ef28f3b067
Basic handling of stability flags
12 years ago
Jordi Boggiano
70a3c68f73
Add package stability
12 years ago
Michael Cullum
2653ece028
Adding author role to ArrayLoader Test
13 years ago
Danny Berger
8d6d155153
Add internal support for multiple default composer repositories.
13 years ago
Jordi Boggiano
a1306091f2
Fix locking behavior with --dev
13 years ago
Jordi Boggiano
89e095b4b5
Handle --dev installs/updates
13 years ago
Jordi Boggiano
e922404f19
Update/add tests
13 years ago
Jordi Boggiano
595182aec0
Add/fix tests
13 years ago
Jordi Boggiano
8654c43c62
Fix version parser regression, fixes #550
13 years ago
Jordi Boggiano
f604ca5762
Allow .x in version constraints as alias for .*
13 years ago
till
23902023e5
fix namespace
13 years ago
Martin Hasoň
736ea800e3
Added isDev method to the VersionParser class
13 years ago
Jordi Boggiano
1213067d96
Add test
13 years ago
Jordi Boggiano
59d2b1145c
Add lock file alias support and a bunch of fixes
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
ae7107fc22
Add more test requirements
13 years ago
Jordi Boggiano
882496b926
Adjust version parser tests
13 years ago
Martin Hasoň
01be62d842
Updated ArrayDumper
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
f6b9488bf0
Move root package handling to a dedicated loader and make ArrayLoader more strict
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
deb6ecd49b
Fix tests
13 years ago
Jordi Boggiano
b125926ad3
Fix tests
13 years ago
Jordi Boggiano
8e6f8ae57e
Add prettyVersion to packages, fixes #76
13 years ago
Jordi Boggiano
36a724fa51
Search only for packages from the local repository in the locker
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
everzet
21191ffa00
refactored PackageLock to Locker and stabilized it
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
Wil Moore III
97de4521d0
slight tweak to the casing of the provider method (providerversioningschemes -> providerVersioningSchemes)
13 years ago
Wil Moore III
eceb416564
eased up on the param documentation/annotations and lowercased the provider method.
13 years ago
Wil Moore III
fd5b1e0f1c
added annotations to test methods
13 years ago
Wil Moore III
b4df1d1a6b
follows code review comments @ https://github.com/composer/composer/pull/23#issuecomment-2208146
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
b620405ab0
Adjusted BasePackage::__toString()
13 years ago
Nils Adermann
ec94b76c7c
Tests for MultiConstraints on versions
14 years ago
Nils Adermann
d5dd86cd75
Correct version contraint matching and add tests for various cases
14 years ago
Nils Adermann
1870291949
Rename PackageTest to MemoryPackageTest
14 years ago
Jordi Boggiano
c6321e7277
Fix tests and invalid use statements
14 years ago