Skip to content

Commit 7b46c93

Browse files
authored
Throw if unpack did not succeed + retry 3 times. (#8521)
1 parent 05ec1fb commit 7b46c93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/pub_worker/lib/src/bin/pana_wrapper.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ Future<void> main(List<String> args) async {
9494
environment: {
9595
'PUB_HOSTED_URL': pubHostedUrl,
9696
},
97+
throwOnError: true,
98+
retryOptions: RetryOptions(maxAttempts: 3),
9799
);
98100
final pkgDir = Directory(p.join(pkgDownloadDir.path, '$package-$version'));
99101
final detected = await _detectSdks(pkgDir.path);

0 commit comments

Comments
 (0)