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
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
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
89885140d3
Created a failing test case
9 years ago
Rob Bast
46e0a506b9
Added another testcase + fix
9 years ago
Rob Bast
a256f3dfca
Added one failing testcase and one successful
...
Demonstrates that it handles x.y.z properly as long as z !== 0
9 years ago
Possum
2e99b9fdf5
Use https where possible
10 years ago
Jordi Boggiano
4ce0adb23c
Use the caret operator for all require operations
10 years ago
Jordi Boggiano
43c1caad0d
Merge remote-tracking branch 'Seldaek/caret-op-for-semver'
...
Conflicts:
tests/Composer/Test/Package/Version/VersionSelectorTest.php
10 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
10 years ago
Jordi Boggiano
0b4a9235f4
CS fixes
10 years ago
David Prévot
e5ede671d2
Config Git repository user
...
One can’t assume a Git user is already setup for the tests.
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
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
Christophe Coevoet
267af928df
Add a failing testcase for stability flags in complex constraints
...
Refs #3570
10 years ago
Nicolas Grekas
e821ac2772
Persist prefer-lowest in composer.lock
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
Nils Adermann
6f4be698a5
Merge pull request #3325 from rdohms/implementing-abandoned-packages
...
Abandoned Package Warnings
10 years ago
Jordi Boggiano
94926218e8
CS fixes
10 years ago
Jordi Boggiano
95d49ce638
Add additional test for beta without dash separator support, fixes #3331
10 years ago
Rafael Dohms
346133d2a1
PR Review
...
- reverted comma removal
- made getReplacementPackage consistent
- removed abandoned flag if false
10 years ago
Rafael Dohms
d6d087d348
Support for Abandoned in Packages
...
Added parsing for abandoned property into the CompletePackage Object.
10 years ago
Jordi Boggiano
e6165e6495
Tweak rules to allow guessing based on branch aliases and avoid greedy constraints on alpha/beta/RC packages, refs #3096
10 years ago
Jordi Boggiano
cf75ec7763
Merge remote-tracking branch 'weaverryan/require-version-select'
10 years ago
François Pluchino
6c6a623229
Fix invalid version format
10 years ago
Ryan Weaver
895e62e859
Refactoring selection of the "recommended" version (e.g ~1.2) and adding some tests
...
This also modifies the behavior slightly (from a recommendation by seldaek) to always
propose the minor version of the recommendation (e.g. ~1.2 instead of ~1.2.1).
10 years ago
Ryan Weaver
aea2e901a9
Extracting logic into a new class related to selecting the latest version
...
Also refactored InitCommand slightly so that you can use this "latest version"
functionality when searching for a package as well.
10 years ago
David Zuelke
d47d9eb253
remember prefer-stable setting in composer.lock
10 years ago
Jordi Boggiano
ac497feaba
CS fixes
10 years ago
Jordi Boggiano
64ac32fca9
Merge pull request #2785 from Firehed/master
...
Add @generated annotation to lockfile (ref PR 2210)
10 years ago
Jordi Boggiano
32cd883daa
Rename options to transport-options, refs #2189
11 years ago
Jordi Boggiano
31092843fd
Only load options when they come from the lock file, not from standard metadata, refs #2189
11 years ago
Jordi Boggiano
016a016455
Merge remote-tracking branch 'lcobucci/master'
...
Conflicts:
src/Composer/Downloader/FileDownloader.php
11 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
12 years ago
Beau Simensen
215556df7c
Use --tags to get non-annotated tags as well.
12 years ago
Beau Simensen
f9fe39e624
Fixed the existing test and added a new one for git tag version guessing.
12 years ago
Sam Minnee
324ef0f9bb
Fixed upper bound of wildcard matches.
...
Follow-on from 95b4348afa
12 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.
12 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.
12 years ago
Jordi Boggiano
9d948eb795
Merge branch 'disjunctive'
12 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