From 7b95d8782dc9ea1d19a686b82a18cdf888b10a16 Mon Sep 17 00:00:00 2001 From: sebprt Date: Tue, 16 Jan 2024 09:09:00 +0100 Subject: [PATCH] Fixed the new run command : missing dependencies + added to the satellite executable --- bin/satellite | 1 + src/Console/Command/WorkflowRunCommand.php | 2 +- src/Service.php | 9 ++++++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/satellite b/bin/satellite index 7986789a..9bad54e1 100755 --- a/bin/satellite +++ b/bin/satellite @@ -25,6 +25,7 @@ $app->addCommands([ new \Kiboko\Component\Satellite\Console\Command\ValidateCommand(), new \Kiboko\Component\Satellite\Console\Command\PipelineRunCommand(), new \Kiboko\Component\Satellite\Console\Command\WorkflowRunCommand(), + new \Kiboko\Component\Satellite\Console\Command\RunCommand(), ]); $app->run(new Input\ArgvInput(), new Output\ConsoleOutput()); diff --git a/src/Console/Command/WorkflowRunCommand.php b/src/Console/Command/WorkflowRunCommand.php index 9b6d9720..e582c0e7 100644 --- a/src/Console/Command/WorkflowRunCommand.php +++ b/src/Console/Command/WorkflowRunCommand.php @@ -9,7 +9,7 @@ use Symfony\Component\Console\Output\OutputInterface; #[Console\Attribute\AsCommand('run:workflow', 'Run a data flow satellite (pipeline or workflow).', hidden: true)] -final class WorkflowRunCommand extends Console\Command\Command +final class WorkflowRunCommand extends RunCommand { protected function configure(): void { diff --git a/src/Service.php b/src/Service.php index 4dbe781b..1f80032a 100644 --- a/src/Service.php +++ b/src/Service.php @@ -238,6 +238,13 @@ private function compileWorkflow(array $config): Satellite\Builder\Repository\Wo 'php-etl/pipeline-contracts:>=0.5.1 <0.6', 'php-etl/action-contracts:>=0.2.0 <0.3', 'php-etl/workflow:*', + 'php-etl/console-state:*', + 'php-etl/workflow-console-runtime:*', + 'psr/log:*', + 'monolog/monolog:*', + 'symfony/dotenv:^6.0', + 'symfony/console:^6.0', + 'symfony/dependency-injection:^6.0', ); $repository->addFiles( @@ -328,11 +335,11 @@ private function compilePipelineJob(array $config): Satellite\Builder\Repository $repository = new Satellite\Builder\Repository\Pipeline($pipeline); $repository->addPackages( + 'php-etl/satellite-contracts:>=0.1.1 <0.2', 'php-etl/pipeline-contracts:>=0.5.1 <0.6', 'php-etl/pipeline:*', 'php-etl/console-state:*', 'php-etl/pipeline-console-runtime:*', - 'php-etl/workflow-console-runtime:*', 'psr/log:*', 'monolog/monolog:*', 'symfony/console:^6.0',