File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ type DependencyWithContext = {
21
21
context : DownloadContext ;
22
22
} ;
23
23
24
+ /**
25
+ * The amount of time we allow the post-install script to run, in milliseconds.
26
+ */
27
+ const InstallTimeout = 10 * 60 * 1_000 ; // Ten minutes.
28
+
24
29
// Dependencies that should be installed into places that users touch
25
30
// (so users' WSL distros and hosts as of the time of writing).
26
31
const userTouchedDependencies = [
@@ -130,7 +135,7 @@ async function downloadDependencies(items: DependencyWithContext[]): Promise<voi
130
135
promises [ specialize ( item ) ] = process ( specialize ( item ) ) ;
131
136
}
132
137
133
- const abortSignal = AbortSignal . timeout ( 10 * 60 * 1_000 ) ;
138
+ const abortSignal = AbortSignal . timeout ( InstallTimeout ) ;
134
139
135
140
while ( ! abortSignal . aborted && running . size > done . size ) {
136
141
const timeout = new Promise ( ( resolve ) => {
You can’t perform that action at this time.
0 commit comments