File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ export class CxInstaller {
15
15
private cliVersion : string ;
16
16
private readonly resourceDirPath : string ;
17
17
private readonly cliDefaultVersion = '2.2.5' ; // This will be used if the version file is not found. Should be updated with the latest version.
18
- private static installSemaphore = new Semaphore ( 1 ) ; // Semaphore with 1 slot
19
18
20
19
constructor ( platform : string ) {
21
20
this . platform = platform ;
@@ -48,7 +47,6 @@ export class CxInstaller {
48
47
49
48
50
49
async downloadIfNotInstalledCLI ( ) : Promise < void > {
51
- const [ _ , release ] = await CxInstaller . installSemaphore . acquire ( ) ;
52
50
try {
53
51
await fs . promises . mkdir ( this . resourceDirPath , { recursive : true } ) ;
54
52
@@ -76,8 +74,6 @@ export class CxInstaller {
76
74
logger . info ( 'Extracted CLI to:' , this . resourceDirPath ) ;
77
75
} catch ( error ) {
78
76
logger . error ( 'Error during installation:' , error ) ;
79
- } finally {
80
- release ( ) ;
81
77
}
82
78
}
83
79
You can’t perform that action at this time.
0 commit comments