Skip to content

Commit

Permalink
ci: debug failing windows tests [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Mar 22, 2024
1 parent 704cbc6 commit a0cf3ef
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/commands/plugins/install.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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}`)
}
}
}
Expand Down

0 comments on commit a0cf3ef

Please sign in to comment.