Skip to content

CLI upgrade uses pre-release module #2549

@BernieWhite

Description

@BernieWhite

Description of the issue

After upgrading to the latest module, a pre-release was upgraded to (but shouldn't have), attempts to restore the module the module fail.

Expected behaviour

  • Upgrading to pre-release modules should not happen by default.
  • If a pre-release is upgraded to the specific pre-release version must be records so that it can be restored correctly.

Error output

> ps-rule module upgrade
[
  {
    "Name": "PSRule.Rules.Azure",
    "Version": "1.39.0",
    "Installed": false,
    "Locked": true
  }
]
> ps-rule module restore
ERROR: Failed to restore module: PSRule.Rules.Azure -- v1.39.0

Module in use and version:

  • Module: PSRule
  • Version: v3.0.0-B0267

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeature: cliIssues that relate to PSRule CLI tooling.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions