Skip to content

Commit aa429e6

Browse files
author
Kartik Raj
committed
Ensure conda info --json times out after 60 seconds
1 parent 2eb8a08 commit aa429e6

File tree

1 file changed

+1
-1
lines changed
  • src/client/pythonEnvironments/common/environmentManagers

1 file changed

+1
-1
lines changed

src/client/pythonEnvironments/common/environmentManagers/conda.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ export class Conda {
354354
// eslint-disable-next-line class-methods-use-this
355355
private async getInfoCached(command: string): Promise<CondaInfo> {
356356
const disposables = new Set<IDisposable>();
357-
const result = await exec(command, ['info', '--json'], {}, disposables);
357+
const result = await exec(command, ['info', '--json'], { timeout: 60000 }, disposables);
358358
traceVerbose(`conda info --json: ${result.stdout}`);
359359

360360
// Ensure the process we started is cleaned up.

0 commit comments

Comments
 (0)