Skip to content

Commit

Permalink
Merge pull request #879 from salesforcecli/ew/jit-install-no-refresh
Browse files Browse the repository at this point in the history
fix: prevent lock refresh
  • Loading branch information
iowillhoit authored Sep 19, 2023
2 parents a9868f5 + abbcb7a commit 269a3dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ export async function testJITInstall(options: Options): Promise<void> {
ux.log(`❌ ${chalk.red(`Failed installation of ${plugin}\n`)}`);
failedInstalls.push(plugin);
}
// Move the data dir so that we can start with a clean slate for the next plugin
// Deleting the dir would waste time, especially on Windows
// These prevents the 'oclif.lock' install refresh from slowing down the test
// There are integration tests in '@oclif/plugin-plugins' that test the oclif.lock refresh
await fs.promises.rename(dataDir, path.join(tmpDir, `data-${plugin.replace('@salesforce/', '')}`));
}
}

Expand Down

0 comments on commit 269a3dd

Please sign in to comment.