[5.x]: Craft upgrade fails when Composer can't delete a Claude package symlink

オープン
#21,298 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
66/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
linux, php
領域
backend, devops

調査の方向性

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 の本文から書いたものです。

説明

bug repo:cms
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
  1. Install Craft CMS 5.12.1.
  2. See that the installed vendor/craftcms/cms package contains the following directories and symlink:
    • .agents/skills/
    • .claude/skills/ (symlink to ../.agents/skills)
  3. 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

craftcms/cms のほかの issue

craftcms/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。