Wim Leers
5d2d513f97
Follow-up for #5205 : fix high concurrency race condition
...
Composer would fail with an
```
PHP temp directory (/tmp) does not exist or is not writable to Composer. Set sys_temp_dir in your php.ini
```
error when used in parallel. Because it is checking if a file with `md5(microtime())` can be created, which is not sufficiently unique when used in parallel.
Since each Composer instance runs in its own process, this can easily be mitigated by not just partitioning based on time of use, but also based on process ID.
Original investigation: https://www.drupal.org/project/automatic_updates/issues/3338789#comment-14961390
2023-03-17 13:55:30 +01:00
Uladzimir Tsykun
32366bc37d
Fix basic auth infinite loop ( #11320 )
2023-03-17 09:13:11 +01:00
Jordi Boggiano
b8f82b244c
Escape % chars in user input before passing to sprintf, fixes #11359
2023-03-15 22:53:29 +01:00
Michal Špaček
efc105eac1
Add proxy value to bin-compat validator ( #11353 )
...
Fix #11352
2023-02-27 16:02:50 +01:00
Jordi Boggiano
b5aad9ec0d
Fix type error when upgrading composer
2023-02-24 17:41:59 +01:00
Jordi Boggiano
1ff942bb44
Fix type errors in key updating logic
2023-02-24 17:41:47 +01:00
Jordi Boggiano
b0a110f164
Reverting release version changes
2023-02-15 13:10:06 +01:00
Jordi Boggiano
6b67eeea4d
Release 2.5.4
2023-02-15 13:10:06 +01:00
Jordi Boggiano
774f04108b
Update changelog
2023-02-15 13:09:51 +01:00
Jordi Boggiano
d35cb21749
Match plugin-optional more strictly
2023-02-10 21:13:30 +01:00
Marek Nocoń
b781031413
Added optional plugin check in PluginInstaller ( #11318 )
2023-02-10 21:12:30 +01:00
Jordi Boggiano
0dd5811583
Ensure we have a bool for plugin-optional
2023-02-10 14:19:02 +01:00
Jordi Boggiano
c92485a3fb
Reverting release version changes
2023-02-10 13:23:53 +01:00
Jordi Boggiano
607a4c0400
Release 2.5.3
2023-02-10 13:23:52 +01:00
Jordi Boggiano
6876958083
Update changelog
2023-02-10 13:23:31 +01: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
Jordi Boggiano
e6ef9eb332
Reverting release version changes
2023-02-04 14:33:23 +01:00
Jordi Boggiano
c76c013c55
Release 2.5.2
2023-02-04 14:33:22 +01:00
Jordi Boggiano
70ba5c90ba
Update changelog
2023-02-04 14:26:44 +01:00
Jordi Boggiano
6e3e801c6a
Update deps
2023-02-03 23:07:37 +01:00
Jordi Boggiano
2f2d6c9de7
Fix package sorting logic, fixes #11287
2023-02-03 22:48:18 +01:00
Andor
50cded331c
Default exclude patterns for the "archive" command ( #11239 )
...
* Issue #11235 - Adds default exclude patterns for the "archive" command based on the target file name
2023-01-27 17:16:33 +01:00
Jordi Boggiano
ad7bc18028
Fix self.version requirements failing the lock file integrity check if on a different version, fixes #11274 ( #11283 )
2023-01-27 16:54:45 +01:00
Jordi Boggiano
0a2846cb24
Fix autoloading on PHP 5.6 ( #11285 )
...
* Add a CI check to ensure the autoloader can run on php5.6+
* Fix autoloading on PHP 5.6
2023-01-27 16:26:04 +01:00
Jordi Boggiano
5165792f9c
Fix security advisory parsing when filter repo is used, fixes #11281
2023-01-27 11:09:34 +01:00
Jordi Boggiano
f6f972a699
Fix require regression with --fixed, fixes #11247
2023-01-19 21:42:22 +01:00
Jordi Boggiano
0d96fd8149
Warn when require ends up auto-selecting a feature branch, fixes #11264 ( #11270 )
2023-01-19 21:42:09 +01:00
Conrad Lara
c7f32820d7
Allow v2 metadata target to provide security advisories without releases. ( #11257 )
2023-01-13 22:20:03 +01:00
Jordi Boggiano
70b1863480
Update deps
2023-01-13 14:19:18 +01:00
Alex Theobold
2431b12230
Test home command ( #11254 )
...
Co-authored-by: alex.theobold <alex.theobold@sykescottages.co.uk>
2023-01-13 09:34:03 +01:00
Jordi Boggiano
f21cc3ab25
Merge pull request #11162 from yesdevnull/feat-more-tests
...
Tests for Audit/Remove/Suggests Commands
2023-01-13 08:49:05 +01:00
Dan Barrett
ca9fb64691
Added tests for the Suggests command
2023-01-06 12:38:47 +11:00
Dan Barrett
7560873740
Added tests for the Remove command
2023-01-06 12:38:47 +11:00
Dan Barrett
29ae7b632a
Add "missing lockfile" test for the Audit command
2023-01-06 12:38:40 +11:00
Dan Barrett
b2304d0b12
Exclude PHPStan extensions from PHPUnit coverage
2023-01-03 18:57:00 +11:00
dependabot[bot]
f07614f1c9
Bump actions/stale from 6 to 7 ( #11244 )
...
Bumps [actions/stale](https://github.com/actions/stale ) from 6 to 7.
- [Release notes](https://github.com/actions/stale/releases )
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/stale/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: actions/stale
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-30 14:38:27 +01:00
Jordi Boggiano
d047f38f73
Make sure autoloader closures do not have a scope class set
2022-12-22 21:01:38 +01:00
Jordi Boggiano
2e71896168
Reverting release version changes
2022-12-22 15:33:55 +01:00
Jordi Boggiano
923278ad13
Release 2.5.1
2022-12-22 15:33:54 +01:00
Jordi Boggiano
9c04f9bfd8
Update changelog
2022-12-22 15:33:49 +01:00
Jordi Boggiano
cf8ce82aa1
Fix preg match type error in svn version guessing, fixes #11231
2022-12-22 15:28:49 +01:00
Jordi Boggiano
cbb7c91223
Fix ClassLoader to be serializable ( #11237 )
...
* Fix ClassLoader to be serializable
* Fix CI to use the source bin/composer as process for "composer" runs incl within simple-phpunit
* Store the closure statically to avoid serialization issues in a cleaner way
2022-12-22 15:17:04 +01:00
PrinsFrank
7290f5b437
Document recovering from invalid merges on composer.lock and composer.json ( #11154 )
2022-12-21 10:16:02 +01:00
Jeffrey Cafferata
da611e089a
Docs: fix documention deep links ( #11233 )
...
* Docs: Fixed the deep links to the documentation website.
Search scope: `src/Composer/Command`.
* Docs: Fixed the deep links to the documentation website.
2022-12-21 09:32:50 +01:00
Jordi Boggiano
737fd0fca8
Reverting release version changes
2022-12-20 10:44:09 +01:00
Jordi Boggiano
09ef0e3acb
Release 2.5.0
2022-12-20 10:44:08 +01:00
Jordi Boggiano
5d659bee1b
Update changelog
2022-12-18 15:23:26 +01:00
Jordi Boggiano
be053cb18e
Allow underscores in cache keys to avoid conflicts with package names containing underscore vs dashes, fixes #11224 ( #11229 )
2022-12-18 00:03:48 +01:00
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