From a0cf3ef5c2300d1d7fff6574ba7295b6e4031335 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Fri, 22 Mar 2024 13:36:00 -0600 Subject: [PATCH] ci: debug failing windows tests [skip ci] --- src/commands/plugins/install.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/commands/plugins/install.ts b/src/commands/plugins/install.ts index 78ba5fca..685089e9 100644 --- a/src/commands/plugins/install.ts +++ b/src/commands/plugins/install.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable no-await-in-loop */ import {Args, Command, Errors, Flags, Interfaces, ux} from '@oclif/core' import chalk from 'chalk' @@ -158,25 +159,27 @@ Use the <%= config.scopedEnvVarKey('NPM_REGISTRY') %> environment variable to se await this.config.runHook('plugins:preinstall', { plugin: p, }) + // eslint-disable-next-line no-useless-catch try { + // eslint-disable-next-line unicorn/prefer-ternary if (p.type === 'npm') { - ux.action.start( - `${this.config.name}: Installing plugin ${chalk.cyan(plugins.friendlyName(p.name) + '@' + p.tag)}`, - ) + // ux.action.start( + // `${this.config.name}: Installing plugin ${chalk.cyan(plugins.friendlyName(p.name) + '@' + p.tag)}`, + // ) plugin = await plugins.install(p.name, { force: flags.force, tag: p.tag, }) } else { - ux.action.start(`${this.config.name}: Installing plugin ${chalk.cyan(p.url)}`) + // ux.action.start(`${this.config.name}: Installing plugin ${chalk.cyan(p.url)}`) plugin = await plugins.install(p.url, {force: flags.force}) } } catch (error) { - ux.action.stop(chalk.bold.red('failed')) + // ux.action.stop(chalk.bold.red('failed')) throw error } - ux.action.stop(`installed v${plugin.version}`) + // ux.action.stop(`installed v${plugin.version}`) } } }