From 8cc7db87ffb3805f20746766d5f7e4792a20747a Mon Sep 17 00:00:00 2001 From: Christian Lopez Espinola Date: Thu, 4 Apr 2024 19:09:57 +0200 Subject: [PATCH 1/2] [DO NOT MERGE] debugging info (no-ci) --- src/ScaffoldInstallerPlugin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ScaffoldInstallerPlugin.php b/src/ScaffoldInstallerPlugin.php index b16bcaf85..0b1f86235 100644 --- a/src/ScaffoldInstallerPlugin.php +++ b/src/ScaffoldInstallerPlugin.php @@ -207,9 +207,11 @@ private function installDdevCommand(): void { if (file_exists('./.ddev/config.yaml')) { $vendor = $this->config->get('vendor-dir'); + $this->io->warning('💃 [penyaskito] $vendor is ' . $vendor); $ddevCommandPath = $vendor . '/lullabot/drainpipe/scaffold/ddev/task-command.sh'; $fs = new Filesystem(); $fs->ensureDirectoryExists('./.ddev/commands/web'); + $this->io->warning('💃 [penyaskito] $ddevCommandPath is ' . $ddevCommandPath); $fs->copy($ddevCommandPath, './.ddev/commands/web/task'); } } From d041b120accb2484a837ed188aae62ab01b6e07d Mon Sep 17 00:00:00 2001 From: Christian Lopez Espinola Date: Thu, 4 Apr 2024 19:49:56 +0200 Subject: [PATCH 2/2] Added debug to binary installer --- src/BinaryInstaller.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BinaryInstaller.php b/src/BinaryInstaller.php index 371f63f6e..ed3383244 100644 --- a/src/BinaryInstaller.php +++ b/src/BinaryInstaller.php @@ -196,9 +196,11 @@ protected function installBinary($binary, $version, $url, $sha, $hashalgo = 'sha $httpDownloader = Factory::createHttpDownloader($this->io, $this->config); $parts = explode('/', $url); $fileName = array_pop($parts); + $this->io->warning('💃 [penyaskito] $fileName is ' . $fileName); $cacheFolder = $this->cache->getRoot().$binary.\DIRECTORY_SEPARATOR.$version; $cacheDestination = $cacheFolder.\DIRECTORY_SEPARATOR.$fileName; $cacheExtractedBinary = $cacheFolder.\DIRECTORY_SEPARATOR.$binary; + $this->io->warning('💃 [penyaskito] $cacheDestination is ' . $cacheDestination); $binDestination = $bin.\DIRECTORY_SEPARATOR.$binary; // Check the cache.