Skip to content

Commit

Permalink
Make the transpile task do less by itself
Browse files Browse the repository at this point in the history
  • Loading branch information
ralflang committed Sep 11, 2022
1 parent 40071bf commit 5921b1f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Release/Task/Transpile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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 );
}

Expand Down

0 comments on commit 5921b1f

Please sign in to comment.