1
0
Fork 0
Commit Graph

1484 Commits (7397a78035c6d0261af03a244af824049c120ed7)

Author SHA1 Message Date
Jordi Boggiano 3a48e39375
Return null for install path for metapackages instead of an empty path which then resolves to the root package's path (#11455)
Fixes #11389
2023-05-14 13:46:46 +02:00
Nicolas Grekas 4b94e55b03
Add extra.plugin-optional to auto-disable plugins in non-interactive mode (#11315) 2023-02-10 13:19:41 +01:00
PrinsFrank 7290f5b437
Document recovering from invalid merges on composer.lock and composer.json (#11154) 2022-12-21 10:16:02 +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
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 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
Jordi Boggiano bc29ffa500
Add network timeout issue to troubleshooting docs, fixes #11036 2022-10-27 16:58:21 +02:00
Jordi Boggiano 96e88cf84d
Merge branch '2.4' 2022-10-13 16:54:55 +02:00
Jordi Boggiano 4faa8c03ce
Update docs about root usage, refs #11093 2022-10-13 16:53:33 +02:00
Elias Häußler 1c669428da
Update link text to runtime page in documentation (#11115) 2022-10-13 15:57:19 +02:00
Gaëtan Faugère 52f91b2dd9
Add test and documentation regarding audit command when no packages are required (#11092) 2022-10-13 10:53:26 +02:00
Philipp Bammes 632f63a9a3
Fix typo in "WordPress" (#11082) 2022-10-12 17:02:26 +02:00
Jellyfrog 8ed7c46179
Add download-only mode (#11041)
composer install --download-only to prime the cache/download archives but not do any actual of the actual installing

Fixes #11035

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2022-10-12 13:56:35 +02:00
Jordi Boggiano 7df744531b
Merge branch '2.4' 2022-10-12 11:27:30 +02:00
Kuba Werłos f8435b6d10
Unify command names in the docs (#11071) 2022-10-12 10:55:57 +02:00
Jordi Boggiano 436a112651
Clarify temporary constraint usages and throw if an unresolvable constraint is provided 2022-10-11 13:34:45 +02:00
Kuba Werłos e870206c4a
Add "--dry-run" to bump command (#11047) 2022-09-19 08:45:49 +02:00
Jeff Widman f1df7de727
Replace deprecated `PSR-2` with `PSR-12` (#11058)
At the top of https://www.php-fig.org/psr/psr-2/, it says:
> Deprecated - As of 2019-08-10 PSR-2 has been marked as deprecated. PSR-12 is now recommended as an alternative.

Looking at the PSR-12 docs, the summary of changes implies that they mostly took PSR-2 and extended it to clarify new language features.
2022-09-14 12:51:36 +02:00
Christophe Coevoet 740de14a39
Fix the heading levels for the doc about composer repositories (#11030) 2022-08-30 14:10:28 +02:00
Jeffrey Cafferata ceec6ff8e2
Documentation code syntax highlighting (#11011)
* Add newline at end of file.

* Create a uniformat in the code syntax highlighting by using the main syntax `shell` instead of the alias `bash`/`sh`.

* Added (of corrected) the missing code syntax highlighting.

* Split the shell commands from the text outputs.

* Fix JSON samples formatting.

* Checked the commands and updated the text output.
2022-08-20 12:23:00 +02:00
Ralf Lang 20b3e3e79c
Fix docs for issue composer/satis#656 (#11005) 2022-08-17 23:24:40 +02:00
Jeffrey Cafferata 9b6d27f810
Environment variable for `--no-audit`. (#10998)
Fixes #10997
2022-08-17 11:44:18 +02:00
Jellyfrog 058beef20a
CheckPlatformReqs: Add json format output (#10979)
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2022-08-16 14:19:53 +02:00
Jordi Boggiano 41a13fa0a1
Merge branch '2.2' 2022-08-16 11:50:56 +02:00
Christopher Charbonneau Wells 2152b20a94
Correct prohibits/why-not example command (#10994)
Running the example command `composer prohibits php:8` returns an error, "Not enough arguments (missing: "version")."
2022-08-16 11:45:35 +02:00
chx 2fd4275e62
Update 03-cli.md (#10995)
Crosslink COMPOSER_NO_DEV
2022-08-16 11:28:46 +02:00
Barry vd. Heuvel a3f7c31ea7
Add json format to Audit command (#10965) 2022-07-25 13:13:32 +02:00
Michael Telgmann 4aa3258d19
Improve documentation about the new bash completion feature (#10962) 2022-07-22 10:16:22 +02:00
Jordi Boggiano e59812c439
Add prompt suggesting using --dev when require command is used with dev packages (#10960)
* Add prompt suggesting using --dev when require command is used with packages which appear to be dev, fixes #10939
2022-07-21 14:40:21 +02:00
Jordi Boggiano e43cae6231
Add COMPOSER_PREFER_STABLE and COMPOSER_PREFER_LOWEST env vars, fixes #10919 2022-07-20 22:29:27 +02:00
Joel Pittet 4182223762
Remove -p from --patch-only, --platform took it (#10956) 2022-07-20 21:06:14 +02:00
Alexander Dmitryuk 8c488b9b08
Add "r" alias for require (#10953)
Co-authored-by: a.dmitryuk <a.dmitryuk@movavi.com>
2022-07-18 13:04:49 +02:00
Jordi Boggiano 31c7474cde
Clarify that install path is absolute but not realpath'd, fixes #10945 2022-07-17 21:59:18 +02:00
Jordi Boggiano 70b78137a9
Merge branch '2.3' 2022-07-05 16:54:43 +02:00
Jordi Boggiano 3764073b43
Merge branch '2.2' into 2.3 2022-07-05 16:08:35 +02:00
Damien Tournoud 92e1c26c3b
Disallow plugins by throwing an exception if non-interactive to avoid half-broken runtime states (#10920)
* Disallow plugins by throwing an exception if non-interactive to avoid half-broken runtime states, fixes #10912
* Also allow BC mode for lock files older than 2.2.0 to keep plugins working there
* Allow locker to be accessed by plugin manager at init time
* Update allow-plugins docs

Co-authored-by: Damien Tournoud <damien@platform.sh>
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2022-07-05 15:44:30 +02:00
Jordi Boggiano 796d2bae08
Merge branch '2.3' 2022-07-01 12:15:30 +02:00
Jordi Boggiano 618fcb800b
Merge branch '2.2' into 2.3 2022-07-01 12:05:18 +02:00
Jordi Boggiano ac7a6e3326
Update docs, refs #10909 2022-07-01 11:35:50 +02:00
Jordi Boggiano 0196690ab3
Disable automatic audit at the end of install step to keep things fast, switch --no-audit to an opt-in --audit flag 2022-06-24 16:54:30 +02:00
Nils Adermann 92ff8e5bc6
Audit command doc improvements (#10893) 2022-06-23 12:59:45 +02:00
Guy Sartorelli d93239ddd9
Add audit command to check for security issues (#10798)
Closes #10329
2022-06-22 15:15:01 +02:00
immeëmosol bbcadcb35e
Hint at improved merge conflict resolving (#10840) 2022-06-22 13:47:15 +02:00
Jordi Boggiano e8530699c3
Add --strict-psr flag to dump-autoload to fail the process if psr violations were detected, fixes #10241 (#10886) 2022-06-20 13:57:20 +02:00
Jordi Boggiano 6186d0c1d5
Add --gc flag to cache-cache command and ability to GC vcs/repo caches, fixes #7834 (#10826) 2022-06-09 11:46:00 +02:00
Jordi Boggiano 0fd845eeaf
Add --major-only flag to outdated/show commands to restrict the list to packages with major updates available, fixes #10439 (#10827) 2022-06-09 11:45:32 +02:00
Jordi Boggiano 70f2dd6edd
Add bump command to bump requirements to the currently installed version, fixes #7273 (#10829) 2022-06-09 11:43:59 +02:00
Jordi Boggiano e9b44b4499
Document files autoloading order, fixes #10509 2022-06-07 15:27:54 +02:00
Carsten Brandt 7cf3b01631
Added documentation about HTTP Bearer Auth (#10780)
Bearer Auth has been added here:

- 548505f103
- f964b83018
- #8671
- #8642

but it was not documented in this file.
2022-06-07 14:04:04 +02:00