1
0
Fork 0
Commit Graph

12159 Commits (d05f4791cd3eef7f1937e91d927b89f5f9583f1d)

Author SHA1 Message Date
Jordi Boggiano 5e6ccae116
Improve version selection in archive command, fixes #4794 (#11230) 2022-12-18 00:02:43 +01:00
Jordi Boggiano 685ec29573
Increase disk size warning to 100MB minimum, closes #11190 2022-12-17 23:50:47 +01:00
Jordi Boggiano 3534499c6b
Add test covering edge case of composer repo format, closes #11206 2022-12-17 23:15:40 +01:00
Jordi Boggiano 8969f8062a
Update baseline (1739, 93) 2022-12-17 23:14:48 +01:00
Ondřej Mirtes 2aa33aaafa
Update PHPStan (#11222)
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2022-12-17 23:12:38 +01:00
Jordi Boggiano 957e7a9165
Merge pull request #11218 from localheinz/fix/patch
Fix preserving of major.minor.patch version when running `composer bump` and installed patch version is `0`, and add bumping of >=x to >=latest
2022-12-17 23:05:21 +01:00
Jordi Boggiano ef7ba73a6a
Add support for bumping >=x to >=latest, fixes #11179 2022-12-17 23:02:52 +01:00
Jordi Boggiano 7f9638f65a
Fix implementation to fix tests, fixes #11220 2022-12-17 22:50:19 +01:00
Markus Staab a94a7512d6
Conditional return type for `IOInterface::select()` (#11219) 2022-12-17 22:03:19 +01:00
PrinsFrank 6d1b36be3b
Check missing-from-lock-file required packages when running install and fail when there are any (#11195) 2022-12-16 16:48:24 +01:00
PrinsFrank b1f3f8b8fa
Prompt users in interactive mode for where to store the credentials if a local auth config file exists (#11188) 2022-12-16 14:31:28 +01:00
Andreas Möller caebfe14ee
Fix: Add test case for not dropping patch version 2022-12-12 17:25:20 +01:00
Ion Bazan 8ff237afb6
[Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
Elias Häußler 0cf57255d4
Make possible return type in `IOInterface::select()` more explicit (#11171)
`IOInterface::select()` either returns any of `int`, `string`, `bool` or an
array of `string` values. However, since the returned array is always a
list, we can safely change the return type annotation to `list<string>`,
making it more explicit in terms of static code analysis.
2022-11-24 13:59:33 +01:00
Jordi Boggiano bd6a5019b3
Update to composer/pcre 2.1 (#11189) 2022-11-17 11:34:54 +01:00
Tom 5f1ec99e4a
Update how-to-install-untrusted-packages-safely.md (#11187) 2022-11-16 13:42:58 +01:00
Buk Bukowski b44e39cc8c
Update 05-repositories.md (#11180)
* Update 05-repositories.md

consistency with previous example

* Update 05-repositories.md
2022-11-13 15:27:23 +01:00
Jordi Boggiano 5b28754602
Avoid normalizing to absolute paths if base dir is /toplevel to improve docker portability, fixes #11165, fixes #4404 (#11169) 2022-11-10 16:32:18 +01:00
Jordi Boggiano 6c85b875f2
Update to PHPStan 1.9 2022-11-03 21:53:42 +01:00
Grzegorz Korba 7dfe4a38c8
Use binary-only images for installing Composer (#11170)
Document optimal way of copying Composer binary using `COPY --from` in Dockerfiles by using binary-only image.
2022-11-03 21:50:22 +01:00
Jordi Boggiano 7c1aa8e0ef
Fix regression in run-script/exec commands prompting when used with --list 2022-11-03 13:37:00 +01:00
PrinsFrank 0fca3e5521
Allow the 'composer remove --unused' command to run in non-interactive mode (#11166) 2022-11-03 13:11:34 +01:00
Jordi Boggiano 45af4e3e20
Do not prompt for binary/script args if they are provided, fixes #11167 2022-11-01 16:21:30 +01:00
Jordi Boggiano 36bc30ffab
Make the require command guess versions more accurately by delegating to the solver (except with --no-update) (#11160) 2022-11-01 15:48:52 +01:00
എതിരാളിക്കൊരു പോരാളി 723f700bea
Update Code of Conduct to Contributor Covenant v2.1 (#11161) 2022-11-01 10:46:06 +01:00
Jordi Boggiano 6bf945017e
Add interactive prompt for which script/binary to run if run-script/exec is called without arg, fixes #11128 (#11157) 2022-10-28 14:25:18 +02:00
Jordi Boggiano 6e55cb36d8
Add support for adding Command classes as scripts, (#11151)
* Add support for adding Command classes as scripts, fixes #11134

* Allow all options to be forwarded and allow using references to other scripts with args

* Fix build

* Add more checks

* Ensure exceptions are not swallowed, and remove naming restriction by using a single-command app

* Update docs

* Add tests, fix issue merging params when combining nested scripts and CLI params
2022-10-28 14:24:55 +02:00
PrinsFrank 0430722e66
Fix output inconsistencies when aliases are being used and '0 installs, 0 updates 0 removals' was being shown when any alias was present compared to 'Nothing to install, update or remove' when no alias is being used. (#11159) 2022-10-28 09:11:55 +02:00
Jordi Boggiano bc29ffa500
Add network timeout issue to troubleshooting docs, fixes #11036 2022-10-27 16:58:21 +02:00
Jordi Boggiano c65687604e
Fix react promise usage for forward compatibility 2022-10-27 16:51:10 +02:00
Jordi Boggiano a63ce7cf96
Add message when doing composer outdated --direct and there is nothing to show, fixes #11152 (#11156) 2022-10-27 16:21:53 +02:00
Jordi Boggiano ec82a1236d
Merge branch '2.4' 2022-10-27 14:45:59 +02:00
Jordi Boggiano 177f4cc4a9
changelog fixes 2022-10-27 14:45:54 +02:00
Jordi Boggiano 1c4ca10c1f
Merge branch '2.4' 2022-10-27 14:40:45 +02:00
Jordi Boggiano cc2e8b05e6
Reverting release version changes 2022-10-27 14:39:29 +02:00
Jordi Boggiano e8d9087229
Release 2.4.4 2022-10-27 14:39:29 +02:00
Jordi Boggiano 4900a14c3e
Update changelog 2022-10-27 14:38:51 +02:00
Jordi Boggiano bb726b8a61
Fix status command reporting differences when source reference is a tag name, fixes #11155 2022-10-27 14:23:51 +02:00
Jordi Boggiano ee0ec9ebc8
Merge branch '2.4' 2022-10-26 13:42:18 +02:00
Alex Theobold 97f4fbc4b0
Adds test coverage to the Fund Command (#11150)
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2022-10-26 13:40:01 +02:00
Jordi Boggiano 10e757d6b0
Add extra debug info when running GH Actions and an archive extraction fails, refs #11148 2022-10-26 12:27:24 +02:00
Jordi Boggiano 923ff98ea0
Update phpstan 2022-10-26 11:23:50 +02:00
Alex Theobold b5b4e15876
test: Create test for CheckPlatformReqsCommand (#10932) 2022-10-25 19:42:42 +02:00
Giulio 1b3a2ed6f6
test: Coverage for ValidateCommand (#11133)
Co-authored-by: giulio-Joshi <me@joshi.it>
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2022-10-25 16:38:01 +02:00
Stephan Jorek d54f2f21c5
Feature: Add support for autocompleting setting-keys in config-command (#11130)
* Add support for autocompleting setting-keys in config-command

This PR implements the support for autocompletion of setting-keys in the
config-command and its related funtional tests. The implementation takes
existing command-line options like `--unset` or `--global` into account, as
well as existing exposable package-properties. The result is a context-
sensitive auto-completion of individual lists of setting-keys.

Additionally showing the value `suggest.` sub-keys has been allowed in
the config-command, as setting and unsetting them has alwas been possible,
and I did not want to distinguish between showing, setting and unsetting
those keys.

In the setting-key flattening-method I used the `array_is_list()` function,
which was added in PHP 8.1 recently. For backwards PHP-compatiblity the
package `symfony/polyfill-php81` has been added.

Signed-off-by: Stephan Jorek <stephan.jorek@brandung.de>
2022-10-25 16:24:02 +02:00
Jordi Boggiano 8ffd8bef08
Merge branch '2.4' 2022-10-25 15:27:14 +02:00
Rafael Corrêa Gomes feb76ae67d
Adding logo to README (#11147) 2022-10-25 15:14:13 +02:00
Ayesh Karunaratne 90673e4f66
Update URL masking patterns for new GitHub fine-grained PATs
Updates GitHub Personal Access Token regex pattern to detect new [fine-grained PATs](https://github.blog/changelog/2022-10-18-introducing-fine-grained-personal-access-tokens/)
2022-10-25 15:07:24 +02:00
Jordi Boggiano 855473148a
Fix regression in loading Composer on SMB/network shares, refs #8231 #11077 2022-10-25 15:05:35 +02:00
Jordi Boggiano 803e4e5dbd
Catch runtime exception while initializing Composer to make sure a missing composer.json does not fail >tryComposer, refs #11133 2022-10-25 15:04:08 +02:00