contao-community-alliance / composer-plugin

Composer plugin that provide contao integration and installer.
GNU Lesser General Public License v3.0
7 stars 10 forks source link

"Failed to create symlink" at Windows #75

Closed zonky2 closed 6 years ago

zonky2 commented 6 years ago

Win 64 Contao 4.4.14 composer update console with admin rights

I install Contao 4.4 per console - works fine...

I just try to install MM 2.1 at this testcase but the fail RunTimeExceptin stop the process.

May be methode AbstractModuleInstaller->addSymlinks() should similar like https://github.com/isotope/core/pull/1894/files

Error:

Package operations: 6 installs, 0 updates, 0 removals                                                                                      
Installs: menatwork/contao-multicolumnwizard:3.3.16, codefog/contao-haste:4.19.0, terminal42/contao-changelanguage:3.1.8, terminal42/dcawiz
ard:2.4.3, terminal42/notification_center:1.4.4, discordier/justtextwidgets:1.1.0                                                          
Installing Contao sources for menatwork/contao-multicolumnwizard                                                                           
  - Installing menatwork/contao-multicolumnwizard (3.3.16): Reading C:/Users/lenovo/AppData/Local/Composer/files/menatwork/contao-multicolumnwizard/03536175d0c96dbc968128fc561a2e4ce419836c.zip from cache Loading from cache                                                                                                                         
 Extracting archive  - Linking "C:/laragon/www/c4-mm-test/vendor/menatwork/contao-multicolumnwizard/system/modules/multicolumnwizard" to "C:/laragon/www/c4-mm-test/system/modules/multicolumnwizard"                                                                                 

  [RuntimeException]                                                                                                                       
  Failed to create symlink C:/laragon/www/c4-mm-test/system/modules/multicolumnwizard                                                      

Exception trace:                                                                                                                           
 () at C:\laragon\www\c4-mm-test\vendor\contao-community-alliance\composer-plugin\src\Installer\AbstractModuleInstaller.php:269            
 ContaoCommunityAlliance\Composer\Plugin\Installer\AbstractModuleInstaller->addSymlinks() at C:\laragon\www\c4-mm-test\vendor\contao-community-alliance\composer-plugin\src\Installer\AbstractModuleInstaller.php:116                                                                 
 ContaoCommunityAlliance\Composer\Plugin\Installer\AbstractModuleInstaller->install() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/Installer/InstallationManager.php:173                                                                                              
 Composer\Installer\InstallationManager->install() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/Installer/InstallationManager.php:160                                                                                                                                 
 Composer\Installer\InstallationManager->execute() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/Installer.php:588          
 Composer\Installer->doInstall() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/Installer.php:227                            
 Composer\Installer->run() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/Command/UpdateCommand.php:161                      
 Composer\Command\UpdateCommand->execute() at phar://C:/laragon/bin/composer/composer.phar/vendor/symfony/console/Command/Command.php:242  
 Symfony\Component\Console\Command\Command->run() at phar://C:/laragon/bin/composer/composer.phar/vendor/symfony/console/Application.php:842                                                                                                                                          
 Symfony\Component\Console\Application->doRunCommand() at phar://C:/laragon/bin/composer/composer.phar/vendor/symfony/console/Application.php:193                                                                                                                                     
 Symfony\Component\Console\Application->doRun() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/Console/Application.php:251   
 Composer\Console\Application->doRun() at phar://C:/laragon/bin/composer/composer.phar/vendor/symfony/console/Application.php:117          
 Symfony\Component\Console\Application->run() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/Console/Application.php:100     
 Composer\Console\Application->run() at phar://C:/laragon/bin/composer/composer.phar/bin/composer:58                                       
 require() at C:\laragon\bin\composer\composer.phar:24                                                                                     
zonky2 commented 6 years ago

I delete all symlinks and run composer update - now works!