Package: composer / 2.0.9-2+deb11u4

Metadata

Package Version Patches format
composer 2.0.9-2+deb11u4 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Use homade autoload for CLI.patch | (download)

bin/composer | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 use homade autoload for cli

0002 Adapt res path.patch | (download)

src/Composer/Json/JsonFile.php | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 adapt res/ path

0003 Mimic distribution path for tests and help2man.patch | (download)

doc/composer/copyright | 1 1 + 0 - 0 !
src/data/Composer | 1 1 + 0 - 0 !
2 files changed, 2 insertions(+)

 mimic distribution path for tests and help2man

0004 Adapt LICENSE path.patch | (download)

src/Composer/Autoload/AutoloadGenerator.php | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 adapt license path

0006 Tag tests relying on remote network.patch | (download)

tests/Composer/Test/Util/RemoteFilesystemTest.php | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 tag tests relying on remote network


0007 Tag test relying on git repository.patch | (download)

tests/Composer/Test/AllFunctionalTest.php | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 tag test relying on git repository


0007 Use expectException instead of setExpectedException.patch | (download)

tests/Composer/Test/Command/InitCommandTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/ConfigTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/DependencyResolver/SolverTest.php | 6 3 + 3 - 0 !
tests/Composer/Test/Downloader/DownloadManagerTest.php | 12 6 + 6 - 0 !
tests/Composer/Test/EventDispatcher/EventDispatcherTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Installer/InstallationManagerTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Installer/LibraryInstallerTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Installer/MetapackageInstallerTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/InstallerTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Package/Archiver/ArchiveManagerTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Package/LockerTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Repository/RepositoryManagerTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Repository/Vcs/GitBitbucketDriverTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Util/ErrorHandlerTest.php | 8 4 + 4 - 0 !
tests/Composer/Test/Util/FilesystemTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Util/SilencerTest.php | 2 1 + 1 - 0 !
16 files changed, 30 insertions(+), 30 deletions(-)

 use expectexception instead of setexpectedexception


0008 Compatibility with recent PHPUnit 8.patch | (download)

tests/Composer/Test/AllFunctionalTest.php | 8 4 + 4 - 0 !
tests/Composer/Test/Autoload/AutoloadGeneratorTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/CacheTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Config/JsonConfigSourceTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/DependencyResolver/DefaultPolicyTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/DependencyResolver/RuleSetIteratorTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/DependencyResolver/SolverTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/DependencyResolver/TransactionTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Downloader/DownloadManagerTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Downloader/FossilDownloaderTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Downloader/GitDownloaderTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Downloader/HgDownloaderTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Downloader/PerforceDownloaderTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Downloader/XzDownloaderTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Downloader/ZipDownloaderTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/IO/ConsoleIOTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/InstalledVersionsTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Installer/InstallationManagerTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Installer/LibraryInstallerTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Installer/MetapackageInstallerTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Installer/SuggestedPackagesReporterTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/InstallerTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Package/Archiver/ArchiveManagerTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Package/Archiver/ArchiverTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Package/Dumper/ArrayDumperTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Package/Loader/ArrayLoaderTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Package/Version/VersionGuesserTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Platform/HhvmDetectorTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Plugin/PluginInstallerTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Repository/ArtifactRepositoryTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Repository/FilterRepositoryTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Repository/RepositoryManagerTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Repository/Vcs/FossilDriverTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Repository/Vcs/GitBitbucketDriverTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Repository/Vcs/GitHubDriverTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Repository/Vcs/GitLabDriverTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Repository/Vcs/HgDriverTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Repository/Vcs/PerforceDriverTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Repository/Vcs/SvnDriverTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Repository/VcsRepositoryTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Util/AuthHelperTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Util/BitbucketTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Util/ErrorHandlerTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Util/FilesystemTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Util/GitTest.php | 2 1 + 1 - 0 !
tests/Composer/Test/Util/Http/ProxyHelperTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Util/Http/ProxyManagerTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Util/IniHelperTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Util/PerforceTest.php | 4 2 + 2 - 0 !
tests/Composer/Test/Util/StreamContextFactoryTest.php | 4 2 + 2 - 0 !
51 files changed, 84 insertions(+), 84 deletions(-)

 compatibility with recent phpunit (8)


0009 Merge pull request from GHSA h5h8 pc6h jvvx.patch | (download)

src/Composer/Downloader/FossilDownloader.php | 6 3 + 3 - 0 !
src/Composer/Downloader/GitDownloader.php | 12 6 + 6 - 0 !
src/Composer/Downloader/GzipDownloader.php | 2 1 + 1 - 0 !
src/Composer/Downloader/HgDownloader.php | 6 3 + 3 - 0 !
src/Composer/Downloader/RarDownloader.php | 2 1 + 1 - 0 !
src/Composer/Downloader/SvnDownloader.php | 2 1 + 1 - 0 !
src/Composer/Repository/Vcs/FossilDriver.php | 6 3 + 3 - 0 !
src/Composer/Repository/Vcs/GitDriver.php | 2 1 + 1 - 0 !
src/Composer/Repository/Vcs/HgDriver.php | 4 2 + 2 - 0 !
src/Composer/Repository/Vcs/SvnDriver.php | 2 1 + 1 - 0 !
src/Composer/Util/Git.php | 4 2 + 2 - 0 !
src/Composer/Util/Svn.php | 2 1 + 1 - 0 !
tests/Composer/Test/Downloader/FossilDownloaderTest.php | 6 3 + 3 - 0 !
tests/Composer/Test/Downloader/GitDownloaderTest.php | 36 18 + 18 - 0 !
tests/Composer/Test/Downloader/HgDownloaderTest.php | 6 3 + 3 - 0 !
tests/Composer/Test/Util/SvnTest.php | 2 1 + 1 - 0 !
16 files changed, 50 insertions(+), 50 deletions(-)

 merge pull request from ghsa-h5h8-pc6h-jvvx

* Fix external process calls to avoid user input being able to pass extra parameters

* Tweak some fixes

0010 Merge pull request from GHSA x7cr 6qr6 2hh6.patch | (download)

src/Composer/Repository/Vcs/GitDriver.php | 6 5 + 1 - 0 !
src/Composer/Repository/Vcs/HgDriver.php | 10 7 + 3 - 0 !
tests/Composer/Test/Repository/Vcs/GitDriverTest.php | 81 81 + 0 - 0 !
tests/Composer/Test/Repository/Vcs/HgDriverTest.php | 46 46 + 0 - 0 !
4 files changed, 139 insertions(+), 4 deletions(-)

 merge pull request from ghsa-x7cr-6qr6-2hh6

* GitDriver: filter branch names starting with a - character

* GitDriver: getFileContent prevent identifiers starting with a -

* HgDriver: prevent invalid identifiers and prevent file from running commands

* HgDriver: filter branches starting with a - character

0011 Update GitHub token pattern.patch | (download)

src/Composer/IO/BaseIO.php | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 update github token pattern

GitHub is updating the format of auth tokens from `a-z0-9` to `A-Za-z0-9` ([notice](https://github.blog/changelog/2021-03-04-authentication-token-format-updates/)).
I'm not sure why `.` is allowed, but I dare not to remove it. In this PR, the token validation regex is updated to allow `A-Za-z0-9` instead of the current all lower-case `a-z` and disallowed `_`.

0012 Checkout ProcessExecutorMock.php needed for updated .patch | (download)

tests/Composer/Test/Mock/ProcessExecutorMock.php | 172 172 + 0 - 0 !
1 file changed, 172 insertions(+)

 checkout processexecutormock.php needed for updated tests

git checkout  2c40c53637c5c7e43fff7c09d3d324d632734709 tests/Composer/Test/Mock/ProcessExecutorMock.php

0013 Import Pcre.patch | (download)

src/Composer/Pcre/MatchAllResult.php | 46 46 + 0 - 0 !
src/Composer/Pcre/MatchAllStrictGroupsResult.php | 46 46 + 0 - 0 !
src/Composer/Pcre/MatchAllWithOffsetsResult.php | 48 48 + 0 - 0 !
src/Composer/Pcre/MatchResult.php | 39 39 + 0 - 0 !
src/Composer/Pcre/MatchStrictGroupsResult.php | 39 39 + 0 - 0 !
src/Composer/Pcre/MatchWithOffsetsResult.php | 41 41 + 0 - 0 !
src/Composer/Pcre/PcreException.php | 60 60 + 0 - 0 !
src/Composer/Pcre/Preg.php | 428 428 + 0 - 0 !
src/Composer/Pcre/Regex.php | 174 174 + 0 - 0 !
src/Composer/Pcre/ReplaceResult.php | 43 43 + 0 - 0 !
src/Composer/Pcre/UnexpectedNullMatchException.php | 20 20 + 0 - 0 !
11 files changed, 984 insertions(+)

 import pcre


0014 Merge pull request from GHSA 7c6p 848j wh5h.patch | (download)

src/Composer/Command/BaseCommand.php | 15 15 + 0 - 0 !
src/Composer/Console/Application.php | 17 17 + 0 - 0 !
src/Composer/Factory.php | 14 10 + 4 - 0 !
src/Composer/Repository/FilesystemRepository.php | 76 75 + 1 - 0 !
tests/Composer/Test/InstalledVersionsTest.php | 12 10 + 2 - 0 !
tests/Composer/Test/Repository/Fixtures/installed.php | 4 2 + 2 - 0 !
tests/Composer/Test/Repository/Fixtures/installed_relative.php | 116 116 + 0 - 0 !
7 files changed, 245 insertions(+), 9 deletions(-)

 merge pull request from ghsa-7c6p-848j-wh5h

* Fix automatic disabling of plugins when running non-interactive as root

* Fix usage of possibly compromised installed.php/InstalledVersions.php at runtime, refs GHSA-7c6p-848j-wh5h

* Fix InstalledVersionsTest regression

0015 Merge pull request from GHSA v9qv c7wm wgmf.patch | (download)

src/Composer/Package/Version/VersionGuesser.php | 8 5 + 3 - 0 !
tests/Composer/Test/Package/Version/VersionGuesserTest.php | 6 3 + 3 - 0 !
2 files changed, 8 insertions(+), 6 deletions(-)

 merge pull request from ghsa-v9qv-c7wm-wgmf

0016 Merge pull request from GHSA 47f6 5gq3 vx9c.patch | (download)

src/Composer/Downloader/GitDownloader.php | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 merge pull request from ghsa-47f6-5gq3-vx9c

0017 Fix test.patch | (download)

tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix test

0018 Adapt test before calling fromShellCommandline.patch | (download)

src/Composer/Util/Perforce.php | 3 1 + 2 - 0 !
src/Composer/Util/ProcessExecutor.php | 6 2 + 4 - 0 !
tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php | 2 1 + 1 - 0 !
3 files changed, 4 insertions(+), 7 deletions(-)

 adapt test before calling fromshellcommandline

Use the test as initially implemented in the 2.2 branch.