pantheon-systems / terminus-composer-logs-plugin
Terminus Composer Logs 插件
1.0.0
2023-11-01 23:59 UTC
Requires
- php: ^8.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-09-23 19:56:56 UTC
README
一个通过 Terminus 显示 composer 日志的插件。
将 'composer:logs' 和 'composer:logs:upstream-update' 命令添加到 Terminus 中。在 Terminus Plugins 文档 中了解更多关于 Terminus 插件的信息。
安装
使用 Terminus 3 安装此插件
terminus self:plugin:install terminus-composer-logs-plugin
使用方法
composer:logs
使用此命令获取某个提交的 composer 日志(默认为最新提交)。
示例
# Get logs for latest commit on given site/env
terminus composer:logs $SITE.$ENV
# Get logs for commit abcdef on given site/env
terminus composer:logs $SITE.$ENV --commit=abcdef
示例输出
Composer version 2.5.8 2023-06-09 17:13:21
Cache directory does not exist (cache-vcs-dir):
Cache directory does not exist (cache-repo-dir):
Cache directory does not exist (cache-files-dir):
Clearing cache (cache-dir): /home/pantheon-app/.composer/cache
All caches cleared.
Running composer install...
composer --no-interaction --no-progress --prefer-dist --ansi install
No patches supplied.
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating autoload files
91 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Scaffolding files for pantheon-systems/drupal-integrations:
- Copy [project-root]/.drush-lock-update from assets/drush-lock-update
composer:logs:upstream-update
使用此命令获取上游更新的 composer 日志(应用或检查)。这对于调试失败的上游更新特别有用。
示例
# Get logs for latest upstream update workflow
terminus composer:logs:upstream-update $SITE.$ENV
示例输出
Applying the latest version of your site's upstream...
Using merge strategy: --strategy-option theirs
Using PHP-based Site Repository Tool...
Using '--update-behavior heirloom' option
Site Repository Tool response: {
"clone": false,
"pull": true,
"push": false,
"logs": [
"Upstream remote has been added",
"Updates have been fetched",
"Updates have been merged",
"Updates have been committed"
],
"conflicts": "",
"errormessage": ""
}
Composer version 2.5.8 2023-06-09 17:13:21
Cache directory does not exist (cache-vcs-dir):
Cache directory does not exist (cache-repo-dir):
Cache directory does not exist (cache-files-dir):
Clearing cache (cache-dir): /home/pantheon-app/.composer/cache
All caches cleared.
Running composer update...
composer --no-interaction --no-progress --prefer-dist --ansi update
> DrupalComposerManaged\ComposerScripts::preUpdate
Setting platform.php from '8.1.13' to '8.2.0' to conform to pantheon php version.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- SOME COMPOSER ERROR HERE
We couldn't check for Composer updates because Composer errored
帮助
运行 terminus list composer
获取所有可用命令的完整列表。使用 terminus help 获取关于某个命令的帮助。