powershell-core does not provide a pwsh shim #4255
Unanswered
dorencambia
asked this question in
Troubleshooting and bug reports
Replies: 1 comment 3 replies
-
it certainly is a bug with powershell. We had a similar issue with spotbugs recently: #4189 I think we probably could though I'm not sure if all of aqua's "files" are supposed to be executable or not. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
powershell-core
installspwsh
. The registry for powershell-core recently changed fromasdf:daveneeley/asdf-powershell-core
to defaulting toaqua:PowerShell/PowerShell
and after this change, installing it with mise no longer makespwsh
available.Using an alias to force the registry to the previous one fixes the issue, and a
chmod +x "/mise/installs/powershell-core/$(mise current powershell-core)/pwsh" && mise reshim
also fixes it, but this took awhile to figure out and it would be nice for it to just work without extra workarounds.The root cause of the issue appears to originate from the PowerShell repo itself, which has ignored this bug since June. I'm not sure if it's possible to make the file executable on your end, but if it isn't, you might want to consider changing the default registry until Microsoft fixes the root issue (or perhaps until Aqua does something about it first).
Beta Was this translation helpful? Give feedback.
All reactions