Skip to content

jitPlugins with version * doesn't work #1286

@bailey-coding

Description

@bailey-coding

Describe the bug

https://github.com/oclif/plugin-plugins/blob/main/src/plugins.ts#L386

https://github.com/oclif/oclif/blob/759d2b15bf0011ef1c7e7477efa0fa28585da8e5/test/fixtures/cli-with-jit-plugin/package.json#L11

To Reproduce
Steps to reproduce the behaviour:

  1. Go to a plugin with jitPlugins
  2. Set version to '*'
  3. Install plugin
  4. Run update
  5. See error
# my-cli update alpha
Fetching information about CLI update [channel: alpha] [dist-tag: alpha-darwin-arm64]... already up-to-date (0.0.1-alpha-darwin-arm64.0)
 ›   Error: Invalid Version: *

Expected behavior

My CLI and plugins to be updated without erroring

Screenshots

N/A

Environment (please complete the following information):

  • OS & version: MacOS Tahoe
  • Shell/terminal & version: N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions