Skip to content

Feature Request: Prevent installations of incompatible PSEditions #71

Open
@markcowl

Description

@markcowl

By default, modules that are marked as incompatible with the PSEdition in use should not be installed. The current behavior results unnecessarily in incompatible modules being installed and causing issues later.

Below, Posh-Git is given as an example, since it is tagged with PSEdition_Core, but can be installed, without any warning on WIndows PowerShell.

Ideally, both modules tagged with PSEdition_Core and not tagged with PSEdition_Desktop should result in an error (or at least a ShouldContinue prompt) when installed on Windows PowerSHell, and modules with PSEdition_Desktop but not PSEdition_Core should be similarly guarded from installation on PowerShell Core.

Steps to reproduce

In WIndows PowerShell:

Install-Module posh-git -AllowPrerelease

Expected behavior

Error saying that this module is incompatible with the current PowerShell Version

Actual behavior

Module is installed

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions