File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ import {
18
18
19
19
const downloadPathV1 = 'cli'
20
20
21
+ const ENABLE_XZ = false
22
+
21
23
/**
22
24
* Version info resolved for a release of Buildless.
23
25
*/
@@ -287,17 +289,19 @@ async function maybeDownload(
287
289
defaultArchiveType = ArchiveType . ZIP
288
290
}
289
291
290
- // check for `xz` support, use it if we can, the archives are smaller
291
- try {
292
- await io . which ( 'xz' , true )
293
- defaultArchiveType = ArchiveType . XZ
294
- core . debug ( `Tool 'xz' found; using xz-based archives.` )
295
- } catch ( err ) {
296
- /* istanbul ignore next */
297
- core . debug (
298
- 'Tool `xz` is not available on the host system; falling back to gzip archives.'
299
- )
300
- defaultArchiveType = ArchiveType . GZIP
292
+ if ( ENABLE_XZ ) {
293
+ // check for `xz` support, use it if we can, the archives are smaller
294
+ try {
295
+ await io . which ( 'xz' , true )
296
+ defaultArchiveType = ArchiveType . XZ
297
+ core . debug ( `Tool 'xz' found; using xz-based archives.` )
298
+ } catch ( err ) {
299
+ /* istanbul ignore next */
300
+ core . debug (
301
+ 'Tool `xz` is not available on the host system; falling back to gzip archives.'
302
+ )
303
+ defaultArchiveType = ArchiveType . GZIP
304
+ }
301
305
}
302
306
303
307
// build download URL, use result from cache or disk
You can’t perform that action at this time.
0 commit comments