Project

General

Profile

Actions

Bug #105327

open

PackageArtifactBuilder creates junctions on windows, incompatible with Docker Desktop

Added by Pierrick Caillon 1 day ago. Updated 1 day ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
composer
Target version:
-
Start date:
2024-10-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Follow up for #100282 #101871 #103898.

Scenario

Windows 10 with development mode set. LAMP stack using Docker Desktop.

Resulting symptoms
PHP in the docker container cannot resolve junctioned assets.

The resulting symlink viewed from docker is an absolute path wich does not exists inside the container.

Workaround
Running a powershell script replacing the Junctions by Symlinkd.

However, now composer complains.

 * Could not publish public resources for extension "typo3/cms-core" by using the "junction" strategy.
   Check whether the target directory "./html/_assets/1ee1d3e909b58d32e30dcea666dd3224" already exists
   and Composer has permissions to write inside the "_assets" directory.

Suggestion
On Windows, try symlinking, on failure, try junctioning. Maybe also save the symlinking failure if junctioning works during the execution.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #100282: Enable _assets Symlinks (junctions) on WindowsClosed2023-03-24

Actions
Related to TYPO3 Core - Bug #101871: PackageArtifactBuilder still tries to create symlinks on WindowsClosed2023-09-07

Actions
Related to TYPO3 Core - Bug #103898: Existing "_assets" subdirectories not being a symlink prevents installationClosed2024-05-24

Actions
Actions #1

Updated by Chris Müller 1 day ago

  • Related to Bug #100282: Enable _assets Symlinks (junctions) on Windows added
Actions #2

Updated by Chris Müller 1 day ago

  • Related to Bug #101871: PackageArtifactBuilder still tries to create symlinks on Windows added
Actions #3

Updated by Chris Müller 1 day ago

  • Related to Bug #103898: Existing "_assets" subdirectories not being a symlink prevents installation added
Actions #4

Updated by Garvin Hicking 1 day ago

Just to understand this: You are running composer commands outside the docker container, on your host? Would anything speak against running composer inside the container? I believe then symlinks should be created which should also work outside of the container in the mounted volume?

Actions

Also available in: Atom PDF