-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Module discovery cmdlets should be able to override PSCompatibleEdition #6992
Copy link
Copy link
Closed
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-DevEx-Portabilityauthoring cross-platform or cross-architecture modules, cmdlets, and scriptsauthoring cross-platform or cross-architecture modules, cmdlets, and scriptsWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Description
Moving toward broader usage on Windows for PowerShell Core 6, we will need to honour the PSCompatibleEditions field of module manifests.
However, this field may be set conservatively or defaulted to a conservative value. As such we should allow a flag to allow the forced import of those modules for Get-Module [-ListAvailable] and Import-Module.
Ideally the name of this flag should be pithy, expressive about being a compatibility override behaviour, and dangerous-sounding so that users will understand that things may break as a result.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-DevEx-Portabilityauthoring cross-platform or cross-architecture modules, cmdlets, and scriptsauthoring cross-platform or cross-architecture modules, cmdlets, and scriptsWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime