Powershell Core support #2353
-
Can we extend support for Powershell to include Powershell Core. This is part of the open source adoption from Microsoft, and is quiet reasonable to have this on enterprise companies. I gave a try to execute crc from this shell and everything work exactly the same (main deviation is the set of cmdlets where Powershell Core try to keep them short, providing capacity to extend them loading specific modules, in our case we do not required nothing of it, so crc works out of the box here). The question is around windows shell identification, the background process where crc is being executed: core powershell process uses here results from e2e run on downstream environment using latest Powershell Core on Windows instance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The question is; "does it not work"? We invoke a separate powershell
instance internally. So this should work, right?
The reason we don't do this as the Hyper-V cmdlets needs to be enabled for
use in PSCore, and this is not a change we wan't to make permanently.
…On Wed, May 19, 2021 at 12:26 AM Adrián Riobo Lorenzo < ***@***.***> wrote:
Can we extend support
<https://github.com/code-ready/crc/blob/808919f7a1d3732ea798641f64d9ad4cbde3db12/pkg/os/shell/shell_windows.go#L12>
for Powershell to include Powershell Core
<https://docs.microsoft.com/es-es/powershell/scripting/overview?view=powershell-7.1>
.
This is part of the open source adoption from Microsoft, and is quiet
reasonable to have this on enterprise companies.
I gave a try to execute crc from this shell and everything work exactly
the same (main deviation is the set of cmdlets where Powershell Core try to
keep them short, providing capacity to extend them loading specific
modules, in our case we do not required nothing of it, so crc works out of
the box here).
The question is around windows shell identification
<https://github.com/code-ready/crc/blob/808919f7a1d3732ea798641f64d9ad4cbde3db12/pkg/os/shell/shell_windows.go#L75>,
the background process where crc is being executed: core powershell process
uses pwsh instead of powershell
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2353>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAOZT6C2I6GYYNFAUGTSTTOKIKFANCNFSM45C3SVEQ>
.
--
Gerard Braad | http://gbraad.nl
STEM is the source, but BUILD is how you develop!
[ Better Understanding Involves Learning and Doing ]
|
Beta Was this translation helpful? Give feedback.
-
PR for dectection has been proposed #3500 |
Beta Was this translation helpful? Give feedback.
PR for dectection has been proposed #3500