[5.x]: Craft upgrade fails when Composer can't delete a Claude package symlink
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 66/100
調査の方向性
Start by tracing the control panel update path that invokes Composer when replacing craftcms/cms, then inspect how Composer handles the reported .claude/skills symlink inside vendor/craftcms/cms. Reproduce with the listed Craft 5.12.1 to 5.12.5 upgrade steps and confirm the update completes without the deletion error or leaving the site in a 500 state.
索引モデルが issue の本文から書いたものです。
説明
What happened?
Description
When upgrading Craft CMS through the control panel, the Composer update can fail when attempting to replace the craftcms/cms package if the existing package directory contains a symbolic link.
In our case, the package contained Claude Code configuration directories, including:
.claude/skills→../.agents/skills.agents/skills
Composer failed to remove the existing directory, resulting in an incomplete update and a 500 error on the website.
Steps to reproduce
- Install Craft CMS 5.12.1.
- See that the installed
vendor/craftcms/cmspackage contains the following directories and symlink:.agents/skills/.claude/skills/(symlink to../.agents/skills)
- Attempt to upgrade Craft CMS to 5.12.5 through the control panel.
Expected behavior
Composer should successfully replace the existing craftcms/cms package directory, including handling or removing symbolic links contained within it.
The Craft CMS update should complete successfully.
Actual behavior
The Composer update fails with the following error:
Update of craftcms/cms failed
In Filesystem.php line 335:
Could not delete /[redacted-path]/vendor/craftcms/cms/.claude/skills
The update exits with code 1, leaving the Composer installation incomplete and the website returning a 500 error.
Manually removing the .claude and .agents directories from the existing package directory, then running composer install from the command line, resolved the issue.
Craft CMS version
5.12.5
PHP version
8.3.37
Operating system and version
Linux 5.4.0-216-generic (Ubuntu 20.04)
Database type and version
MariaDB 10.6.22
Image driver and version
GD 8.3.37
Installed plugins and versions
CKEditor 5.10.0
Control Panel CSS 3.0.0
Formie 3.3.0
oEmbed 3.2.3
Postmark 3.2.0
Sentry Logger 5.0.3
SEOMate 3.4.0
Sprout Redirects 5.0.9
- 主要言語
- PHP
- スター
- 3.6k
- フォーク
- 800
- 平均マージ
- 15時間 20分
- マージ済み PR(30日)
- 715
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
craftcms/cms のほかの issue
-
bug repo:cms
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
craftcms/cms#21301 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug repo:cms
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
craftcms/cms#21307 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug repo:cms
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
craftcms/cms#21306 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[6.x]: Duplicate key in .env crashes the app when config is cached ("Constant … already defined")対応中かも @riasvdv が今日担当しました。 オープン
craftcms/cms#21305 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug repo:cms
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
craftcms/cms#21303 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.phpオープンenhancement feature: settings good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
nextcloud/integration_openai#480 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
a11y
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
omeka/plugin-Contribution#84 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
recca0120/vscode-phpunit#620 ·
メンテナーはふだん 1 日以内に返信