Compare commits
1 Commits
composer-i
...
symlinksIn
Author | SHA1 | Date | |
---|---|---|---|
ab916d8135 |
@ -1,13 +0,0 @@
|
|||||||
--- src/Installer/Package/AbstractPackageInstaller_Original.php 2021-04-12 16:59:26.000000000 +0200
|
|
||||||
+++ src/Installer/Package/AbstractPackageInstaller.php 2021-04-29 16:16:31.000000000 +0200
|
|
||||||
@@ -198,9 +198,7 @@
|
|
||||||
*/
|
|
||||||
protected function askQuestion($messageToAsk)
|
|
||||||
{
|
|
||||||
- $userInput = $this->getIO()->ask($messageToAsk, 'N');
|
|
||||||
-
|
|
||||||
- return $this->isPositiveUserInput($userInput);
|
|
||||||
+ return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
@ -9,8 +9,8 @@ composer require cweagans/composer-patches
|
|||||||
"extra": {
|
"extra": {
|
||||||
"patches": {
|
"patches": {
|
||||||
"oxid-esales/oxideshop-composer-plugin": {
|
"oxid-esales/oxideshop-composer-plugin": {
|
||||||
"Don't ask, simple install all new":
|
"don't copy module files to source, symlink it only":
|
||||||
"https://git.d3data.de/D3Public/oxid_patches/raw/branch/composer-install/OxidAskYes.patch"
|
"https://git.d3data.de/D3Public/oxid_patches/raw/branch/symlinksInSource/symlinkmodules.patch"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"enable-patching": true
|
"enable-patching": true
|
||||||
|
31
symlinkmodules.patch
Normal file
31
symlinkmodules.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From 84a2fb615a64f4a52ef44adbb19eda48e9e1b1f3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Daniel Seifert <ds@shopmodule.com>
|
||||||
|
Date: Thu, 7 Jul 2022 14:16:51 +0200
|
||||||
|
Subject: [PATCH 1/1] create symlinks in source folder instead of copying
|
||||||
|
module files
|
||||||
|
|
||||||
|
---
|
||||||
|
.../Module/Install/Service/ModuleFilesInstaller.php | 6 ++----
|
||||||
|
1 file changed, 2 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/source/Internal/Framework/Module/Install/Service/ModuleFilesInstaller.php b/source/Internal/Framework/Module/Install/Service/ModuleFilesInstaller.php
|
||||||
|
index dff8629e6..d6a96be59 100644
|
||||||
|
--- a/source/Internal/Framework/Module/Install/Service/ModuleFilesInstaller.php
|
||||||
|
+++ b/source/Internal/Framework/Module/Install/Service/ModuleFilesInstaller.php
|
||||||
|
@@ -52,11 +52,9 @@ class ModuleFilesInstaller implements ModuleFilesInstallerInterface
|
||||||
|
{
|
||||||
|
$finder = $this->getFinder($package->getPackageSourcePath(), $package->getBlackListFilters());
|
||||||
|
|
||||||
|
- $this->fileSystemService->mirror(
|
||||||
|
+ $this->fileSystemService->symlink(
|
||||||
|
$package->getPackageSourcePath(),
|
||||||
|
- $this->getTargetPath($package),
|
||||||
|
- $finder,
|
||||||
|
- ['override' => true]
|
||||||
|
+ $this->getTargetPath($package)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.26.1.windows.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user