Skip to content

Commit

Permalink
fix atomic groups filesystem changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Jul 3, 2021
1 parent e6ef3ba commit f9fbd92
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/steps/step-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ export class StepManager {
return promptConfirm;
}

protected async runStep(storedStep: StoredStep, pathProvider: PathProvider, paramProviderFactory: ParamProviderFactory, phpProvider: PhpProvider): Promise<Store> {
const fs = createMemFs();

protected async runStep(storedStep: StoredStep, pathProvider: PathProvider, paramProviderFactory: ParamProviderFactory, phpProvider: PhpProvider, fs: Store = createMemFs()): Promise<Store> {
const initial: Record<string, unknown> = storedStep.dependencies.reduce((initial, dep) => {
let depValue;
if (dep.exposedName === '__succeeded') {
Expand Down Expand Up @@ -258,7 +256,7 @@ class AtomicStepManager extends StepManager {
const shouldRun: boolean = await this.stepShouldRun(storedStep, paramProviderFactory);
if (!shouldRun) continue;

fs = await this.runStep(storedStep, pathProvider, paramProviderFactory, phpProvider);
fs = await this.runStep(storedStep, pathProvider, paramProviderFactory, phpProvider, fs);

stepNames.push(storedStep.step.type);
}
Expand Down

0 comments on commit f9fbd92

Please sign in to comment.