Skip to content

Respect CompatiblePSEditions field in module manifests, with sane default #6991

Closed

Description

@rjmholt

For Windows PowerShell/PowerShell Core modules to have a clear cross-compatibility story, we need PowerShell Core to respect the CompatiblePSEditions field.

This means, for PowerShell Core:

  • Get-Module -ListAvailable lists only those modules on the module path that are Core compatible
  • Import-Module will only import a module that is Core compatible and throw an error otherwise
  • The absence of the CompatiblePSEditions field should imply a sane default. The current suggested default is CompatiblePSEditions = @('Desktop'), i.e. compatible with Windows PowerShell (since there is no such field in Windows PowerShell and modules written for it only would lack this field by default).

Activity

  1. added
    Issue-Enhancement
    WG-Engine
    WG-DevEx-Portability
    on Jun 4, 2018
  2. rjmholt commented on Jun 4, 2018

    @rjmholt
    CollaboratorAuthor

    See also: #6992

  3. rjmholt commented on Jun 13, 2018

    @rjmholt
    CollaboratorAuthor

    Tagging @PowerShell/powershell-committee for discussion. I think we're also going to do an RFC for this, yes?

  4. added
    Review - Committee
    on Jun 13, 2018
  5. changed the title [-]Respect PSCompatibleEdition field in module manifests, with sane default[/-] [+]Respect CompatiblePSEditions field in module manifests, with sane default[/+] on Jun 14, 2018
  6. rjmholt commented on Jun 14, 2018

    @rjmholt
    CollaboratorAuthor

    We should also clarify the difference between PSEdition and CompatiblePSEdition

  7. SteveL-MSFT commented on Jun 14, 2018

    @SteveL-MSFT
    Member

    Rob Holt (@rjmholt) yes, RFC to be published shortly

  8. SteveL-MSFT commented on Jun 15, 2018

    @SteveL-MSFT
    Member
  9. removed
    Review - Committee
    on Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-EnhancementResolution-FixedWG-DevEx-PortabilityWG-Engine

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions