Skip to content

plugin install hook fires on initial install and errors #4

@sbresin

Description

@sbresin

when installing the plugin in the sf-CLI (salesforce), the hook seems to fire before the command is available/registered.

sf plugins install @cristiand391/oclif-carapace-spec-plugin
? @cristiand391/oclif-carapace-spec-plugin isn't signed by Salesforce. Only install the plugin if you trust its creator. Do you want to continue the installation? yes
Because you approved this plugin, you can avoid future installation confirmations by adding the plugin to the unsignedPluginAllowList.json file. For details, see https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_allowlist.htm.
Finished digital signature check.
 ›   Warning: carapace-gen is not a sf command.
 Did you mean cmdt create? (Y/n)


@salesforce/cli: Installing plugin @cristiand391/oclif-carapace-spec-plugin@latest... !
 ›   Error: Run sf help for a list of available commands.

probably the hook would need to call the code directly and not through opt.runCommand 🤷

the installation still works and the command is usable afterwards, its just not generating the initial spec and shows the confusing error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions