Jordi Boggiano
10e634890e
Good morning 😴
3 years ago
Jordi Boggiano
91dd175f74
Fix env var handling when variables_order includes E and symfony/console 3.3.15+ is used, fixes #9930
3 years ago
Jordi Boggiano
61c7762680
Merge pull request #9932 from jrfnl/php-8.1/9931-fix-deprecation-notice
...
PHP 8.1 | Fix "Implicit conversion from non-compatible float" deprecation notice
3 years ago
jrfnl
3db2304fc6
PHP 8.1 | Fix "Implicit conversion from non-compatible float" deprecation notice
...
As reported in 9931.
Unfortunately I gave not been able to track down the input which is causing the notices to be thrown, which is why I haven't added a test case to the unit tests. Would be great if someone would known the exact input to use for those.
The issue (and fix) can be verified by using the "quick preview" option and choosing `git.master` with this code sample: https://3v4l.org/1fr2g
3 years ago
Jordi Boggiano
aeb2c8d6e3
Make sure InstalledVersions ships to project with docblocks
3 years ago
Jordi Boggiano
8bf0ddf905
Clean up ZipDownloader, always do async first if possible then fallback to non-async
3 years ago
Jordi Boggiano
28c7d0ea5d
Avoid creating new processes to remove directories which we know are empty, which speeds things up a lot on windows
3 years ago
Jordi Boggiano
d864c5743a
Add 7-zip presence check to diagnose command
3 years ago
Nicolas Grekas
bec76367db
Speedup extracting on Windows
3 years ago
Nils Adermann
1ca6397442
Merge pull request #9765 from Seldaek/always_sync_symlinked_path_pkgs
...
Always mark symlinked path packages for update even during partial updates to make sure they always reflect the current state on disk
3 years ago
Nils Adermann
189936dd59
Merge pull request #9928 from Seldaek/replace_conflict
...
Add better error reporting for cases where a package conflicts with a replace and not directly a package
3 years ago
Jordi Boggiano
1f37d1c1d5
Add better error reporting for cases where a package conflicts with a replace and not directly a package, fixes #9834
3 years ago
Jordi Boggiano
35bfa453cc
Merge pull request #9925 from Seldaek/dist_placeholders
...
Add support for mirror-style placeholders for the dist url
3 years ago
Jordi Boggiano
b751156e1c
Prevent cache gc from happening during test suite runs, and add output so it is clear why it is blocking for a bit
3 years ago
Jordi Boggiano
93a5b27631
Add prettyVersion to URL placeholders
3 years ago
Jordi Boggiano
a23f8a3d6c
Add gitlab-protocol to config command and schema
3 years ago
Jordi Boggiano
90d72ca686
Tweak validate command output to be slightly more readable, less colorful
3 years ago
Jordi Boggiano
2eaf81c813
Fix a few issues in lock file validation
...
- handle packages present but in wrong version
- handle provide/replace correctly
- do not validate if lock file is missing
refs #9899
3 years ago
Jordi Boggiano
69dc607408
Merge remote-tracking branch 'PrinsFrank/detect-missing-packages-on-validate'
3 years ago
Nils Adermann
1dc39bda75
Merge pull request #9915 from Seldaek/reinstall
...
Add a reinstall command
3 years ago
Jordi Boggiano
4dbdae3ada
Sort uninstalls in reverse order from installs
3 years ago
Jordi Boggiano
5737a34e53
Sort package installs using Transaction
3 years ago
Jordi Boggiano
c257395a6d
Add support for mirror-style placeholders for the dist url, fixes #9661
3 years ago
Abi أب
759897e7e8
Update cache dir on macOS to follow OS guidelines (now $HOME/Library/Caches/Composer) ( #9898 )
...
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Brad Jones
dd625669e8
Introduce gitlab-protocol option to force the gitlab repos to use https or git protocol ( #9401 )
3 years ago
Jordi Boggiano
c8de960018
Throw when repo consistency is in question
3 years ago
Jordi Boggiano
0dce0f80f1
Also hint for errors when the root package does not match the constraint
3 years ago
Nils Adermann
21c70c2606
Merge pull request #9902 from Seldaek/cyclic-deps
...
Detect and output a better hint for cyclic dependencies
3 years ago
Jordi Boggiano
cbef7b9172
Detect and output a better hint for dependencies on the root package, fixes #9837
3 years ago
Jordi Boggiano
387e504437
Undeprecated dump-autoload --no-dev even though it is mostly not needed anymore, refs #9714
3 years ago
Jordi Boggiano
500efbe233
Add a reinstall command, fixes #3112
3 years ago
Jordi Boggiano
084fff2014
Merge remote-tracking branch 'guilliamxavier/lax-schema'
3 years ago
Jordi Boggiano
6ac5b46607
Add legend for outdated and show --latest commands, fixes #9716
3 years ago
Jordi Boggiano
7888d3fb97
Align result descriptions to make search output more readable, fixes #9455
3 years ago
Jordi Boggiano
44e6591573
Improve error reporting for exts overridden by platform config, fixes #9876
3 years ago
Guilliam Xavier
2d21dd675a
Invert strict/lax schema validation
3 years ago
Guilliam Xavier
9e2cb30dfb
Revert "Merge remote-tracking branch 'BoShurik/schema'"
...
This reverts commit 89c3045e2b
, reversing
changes made to 991985792d
.
3 years ago
Guilliam Xavier
41c66b1a2d
Revert "Update docs and add more helpful output to validate command, refs #9782"
...
This reverts commit 458bd41d8f
.
3 years ago
Jordi Boggiano
da3d5e3143
Merge pull request #9699 from ochorocho/improve-installed-versions-9648
...
Add install-path and type to installedVersions.php and installed.php,…
3 years ago
Jordi Boggiano
6f255d1230
Merge branch '2.0'
3 years ago
Jordi Boggiano
8874ca0e5a
Fix regression introduced in dd54f295fe
3 years ago
John Stevenson
ce19bcd992
Upgrade to xdebug-handler 2 ( #9832 )
...
This adds support for Xdebug3 modes and changes the default behaviour
from always restarting if Xdebug is loaded, to only restarting if Xdebug
is active.
Xdebug is considered active if it is loaded, and for Xdebug3, if it is
running in a mode other than `xdebug.mode=off`.
3 years ago
Jordi Boggiano
23d1de5d59
Merge branch '2.0'
3 years ago
Jordi Boggiano
fee22972ea
Update basic docs on install/update, fixes #9754
3 years ago
Jordi Boggiano
6441e1f94f
Merge branch '2.0'
3 years ago
Jordi Boggiano
7d19930ca6
Fix minimum-stability validation to match what VersionParser::normalizeStability does, closes #9904
3 years ago
Jordi Boggiano
019d051e9e
Fix type
3 years ago
Jordi Boggiano
284ec95712
Document new methods and update the composer-runtime-api version to 2.1
3 years ago
Jordi Boggiano
82cffa17d3
Undo addition of initializeInstalled and remove inline copy of the data from the class
3 years ago
Jordi Boggiano
3fe4f84a76
Fix handling of metapackages with null paths, and handling of paths which do not have a shortest-path and require an absolute path to be addressed
3 years ago
Jordi Boggiano
518b44a810
Clean up dump code to avoid reimplementing var export, and remove DIRECTORY_SEPARATOR
3 years ago
Jordi Boggiano
5a69a1e483
Add InstalledVersions::getInstallPath($package) getter, and update phpdoc types
3 years ago
Jordi Boggiano
8335b49cf0
Rename dev-requirement to dev_requirement for consistency
3 years ago
Jochen Roth
b6c9d34125
Add install-path and type to installedVersions.php and installed.php, add method to get installed packages by type
...
Issue https://github.com/composer/composer/issues/9648
3 years ago
Jordi Boggiano
31cc102850
Merge branch '2.0'
3 years ago
Frank Prins
e83e92b2ae
Ignore platform requirements like "ext-*" and "php" when validating the lock file as they don't get locked
3 years ago
Frank Prins
32b70142d9
Replace static anonymous function and replace it with normal anonymous function as static ones are only supported on PHP5.4 and up
3 years ago
Frank Prins
f4d3a1e478
Detect missing packages that are a requirement or dev-requirement but not locked.
3 years ago
Nils Adermann
16279d328e
Merge pull request #9816 from Seldaek/install_deprecate
...
Deprecate InstalledVersions::getRawData in favor of getAllRawData
3 years ago
Jordi Boggiano
8a3f4a8400
Add secure-svn-domains config option to mark secure svn:// hostnames, fixes #9872
3 years ago
Jordi Boggiano
458bd41d8f
Update docs and add more helpful output to validate command, refs #9782
3 years ago
Jordi Boggiano
89c3045e2b
Merge remote-tracking branch 'BoShurik/schema'
3 years ago
Jordi Boggiano
991985792d
Merge branch '2.0'
3 years ago
Jordi Boggiano
251b852fd2
Make sure async processes fail the promise if they fail to start, fixes #9808
3 years ago
Jordi Boggiano
8427b6c8ed
Also make sure filesystem is up to date before generating binary links, refs #9627
3 years ago
Jordi Boggiano
9ba042ded8
Add Platform-PHP version to user-agent header to improve targetted-php stats ( #9873 )
3 years ago
Jordi Boggiano
5bf614a762
Merge branch '2.0'
3 years ago
Jordi Boggiano
dd54f295fe
Fix progress output, and remove progress bar on CI env, fixes #9621 , closes #9880
3 years ago
Jordi Boggiano
459a7d9623
Use a simpler suggested require version of * to keep things simple for extensions which are versioned like PHP, fixes #9483
3 years ago
Jordi Boggiano
0021758e0b
Merge branch '2.0'
3 years ago
Jordi Boggiano
d56387edb7
Also handle throwable on supported php versions
3 years ago
Jordi Boggiano
649087d6de
Fix type issues with root package interface
3 years ago
Jordi Boggiano
22cc96682d
Merge branch '2.0'
3 years ago
Jordi Boggiano
b268e20d9f
Fix invalid interface usage
3 years ago
Jordi Boggiano
7b77161b7e
Merge branch '2.0'
3 years ago
Jordi Boggiano
37f4f531d0
Avoid leaving the event stack in a dirty state if an event listener throws, fixes #9846
3 years ago
Jordi Boggiano
a844fce23e
Fix handling of inline-update-constraints with refs or stability flags, fixes #9847
3 years ago
Jordi Boggiano
a04202aa7d
Merge pull request #9864 from Seldaek/dev-versions-dx
...
Hint at a branch rename if we detect dev-master can not be found and condense dev-* versions in problem output
3 years ago
Jordi Boggiano
3380178798
Introduce a cross-platform safe version of is_readable to support UNC / wsl$ paths on Windows ( #9861 )
3 years ago
Jordi Boggiano
298246dccb
Also condense dev-* versions if there are many, refs #9850
3 years ago
Jordi Boggiano
9b7a8d4543
Hint at a branch rename if we detect dev-master can not be found but dev-main or dev-default exists, fixes #9850
3 years ago
Markus Staab
bfea0f7d1e
BinaryInstaller: install full binaries on WSL when bin-compat=auto ( #9855 )
3 years ago
Jordi Boggiano
4842f213a1
Also make sure type is correct for preg_match
3 years ago
Jordi Boggiano
832f4007d6
Allow ints in source/dist reference
3 years ago
Jordi Boggiano
832af78e28
Add basic source/dist validation
3 years ago
Jordi Boggiano
40c7a725e1
Merge branch '2.0'
3 years ago
Jordi Boggiano
332c46af8b
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
3 years ago
Jordi Boggiano
2a50a9400f
Fix install step at the end of init command
3 years ago
Jordi Boggiano
1fd70de32d
Merge branch '2.0'
3 years ago
Jordi Boggiano
99d8e0ad09
Fix install step at the end of init command
3 years ago
Andreas Scheibel
bb1bb022e4
"composer init --autoload" - Interactive generates PSR-4 autoloader in composer.json ( #9829 )
...
- Generates PSR-4 autoload entry in composer.json.
- Run dump-autoload, if no dependencies are set
3 years ago
Adam
e291aa1d12
Allow PreFileDownloadEvent to carry transport options for metadata ( #9831 )
3 years ago
John Stevenson
c3b76a8532
Upgrade to xdebug-handler 2 ( #9832 )
...
This adds support for Xdebug3 modes and changes the default behaviour
from always restarting if Xdebug is loaded, to only restarting if Xdebug
is active.
Xdebug is considered active if it is loaded, and for Xdebug3, if it is
running in a mode other than `xdebug.mode=off`.
3 years ago
Adam
180ba49f33
ComposerRepository::asyncFetchFile() does not pass the downloaded URL to PostFileDownloadEvent ( #9827 )
3 years ago
Markus Staab
7c602d8807
Added link to composer.org docs on ProcessTimedOutException ( #9796 )
3 years ago
Jordi Boggiano
d75d79b452
Merge pull request #9822 from phenaproxima/post-file-download
...
Fire POST_FILE_DOWNLOAD event for metadata fetched by ComposerRepository
4 years ago
Jordi Boggiano
9a9c738f23
Add repository instance to Pre/PostFileDownloadEvent metadata
4 years ago
Jordi Boggiano
7dd95a768b
Clean stuff up and deprecate old usages for PostFileDownloadEvent
4 years ago
Phéna Proxima
df0a2cdd0a
Fire POST_FILE_DOWNLOAD event for metadata fetched by ComposerRepository.
4 years ago
Jordi Boggiano
549dabf878
Merge branch '2.0'
4 years ago