From 5921b1f0c74b7c43e2e1cf8c6073091ab479809a Mon Sep 17 00:00:00 2001 From: Ralf Lang Date: Sun, 11 Sep 2022 20:03:26 +0200 Subject: [PATCH] Make the transpile task do less by itself --- src/Release/Task/Transpile.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Release/Task/Transpile.php b/src/Release/Task/Transpile.php index 69bb2309..7ed496da 100644 --- a/src/Release/Task/Transpile.php +++ b/src/Release/Task/Transpile.php @@ -81,7 +81,7 @@ public function preValidate($options) // Check if the component checkout is clean $componentDir = $this->getComponent()->getComponentDirectory(); if (!$this->git->checkoutIsClean($componentDir)) { - $issues[] = 'The target git checkout is not clean.'; +// $issues[] = 'The target git checkout is not clean.'; } // TODO: Make ephemeral branch configurable. $ephemeralBranch = 'transpiler-ephemeral'; @@ -136,6 +136,8 @@ public function run(&$options): void $this->git->checkoutBranch($componentDir, $ephemeralBranch); $this->getOutput()->info('Checked out ephemeral branch: ' . $ephemeralBranch); $this->composer->setDependency($componentDir, 'rector/rector', '*', 'dev'); + // TODO: Make this configurable + $this->composer->setMinimumStability($componentDir, 'dev'); $this->composer->update($componentDir); $this->getOutput()->info('Installed Rector Transpiler'); $transpilerFile = $this->configApplication->getTemplateDirectory() . '/rector/transpile-' . $options['target_platform'] . '.php'; @@ -189,7 +191,7 @@ public function run(&$options): void if (!empty($options['push_remote'])) { $remote = $options['push_remote']; $force = (bool) $options['force_push'] ?? false; - $this->git->push($componentDir, $remote, $targetRef, $force); +// $this->git->push($componentDir, $remote, $targetRef, $force); $this->getOutput()->info('Pushed ' . $targetRef . ' to remote ' . $remote ); }