Skip to content

Commit

Permalink
Fixed the new run command : missing dependencies + added to the satel…
Browse files Browse the repository at this point in the history
…lite executable
  • Loading branch information
sebprt committed Jan 16, 2024
1 parent 48c50cf commit 7b95d87
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/satellite
Original file line number Diff line number Diff line change
Expand Up @@ -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());
2 changes: 1 addition & 1 deletion src/Console/Command/WorkflowRunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
9 changes: 8 additions & 1 deletion src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 7b95d87

Please sign in to comment.