简体   繁体   English

在TYPO3 8.7 composer中,install将typo3和index.php安装为目录和文件,而不是符号链接。

[英]In TYPO3 8.7 composer install installs typo3 and index.php as a directory and file instead of as symlinks

Problem 问题

In TYPO3 8.7 composer install installs typo3 and index.php as a directory and file instead of as symlinks. 在TYPO3 8.7 composer installtypo3index.php安装为目录和文件,而不是符号链接。

Background 背景

  • I wanted to regenerate my vendor directory so did rm -rf vendor/ public/typo3conf/ext/* from a MINGW64 console with Admin privs on my host machine followed by composer install also from the host, not the container. 我想重新生成我的供应商目录,所以从主机上具有Admin privs的MINGW64控制台通过rm -rf vendor/ public/typo3conf/ext/*也可以从主机(而不是容器) composer install
  • I am using DDEV for a local testing environment (which explains why I'm mentioning host/container). 我将DDEV用于本地测试环境(这说明了为什么我提到主机/容器)。
  • My host machine is Windows 10 Pro. 我的主机是Windows 10 Pro。
  • I'm not using typo3/cms but instead requiring every individual package needed like typo3/cms-core , typo3-cms-blahblah . 我不是在使用typo3/cms ,而是在需要每个单独的软件包,例如typo3/cms-coretypo3-cms-blahblah

I found the only way I could fix the problem last time was to wipe the entire project and recreate it and this just isn't the right solution. 我发现我上次解决该问题的唯一方法是擦除整个项目并重新创建它,但这不是正确的解决方案。

This is expected behavior... there is a supposed to be a difference when switching from typo3/cms to explicitly requiring the packages via typo3/cms-* . 这是预期的行为...typo3/cms切换到通过typo3/cms-*显式要求软件包时,应该会有区别。 (Based on a reply from @Matthias Brodala via the #typo3-cms-composer channel in slack). (基于@Matthias Brodala通过#typo3-cms-composer频道的回复)。

When using typo3/cms package 使用typo3/cms包装时

From your webroot... 从您的webroot ...

  • index.php (symlinks to ../vendor/typo3/cms/index.php ) index.php (指向../vendor/typo3/cms/index.php符号链接)
  • typo3 (symlinks to ../vendor/typo3/cms/typo3/ ) typo3 (指向../vendor/typo3/cms/typo3/符号链接)

When using typo3/cms-* packages 使用typo3/cms-*软件包时

From your webroot... 从您的webroot ...

  • index.php (not a symlink) index.php (不是符号链接)
  • typo3 (not a symlink) typo3 (不是符号链接)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM