-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrap irm-iex exprs in pwsh? #458
Comments
addendum: the expression should be
(pwsh is the command for "PowerShell Core" aka "PowerShell 6+" which is not installed by default on windows, powershell is the name of "PowerShell" aka "PowerShell 5.1", which is installed by default on windows. Core is essentially an unrelated product in that its implementation and behaviour is arbitrarily divergent, because it was made from the groundup to be run on linux and macos portably. While 5.1 is windows-only and Forever Eternal For Compatibility.) renewed interest in this solution: a few versions ago we cleaned up error handling and wrapped everything in a try-catch with "exit 1" in the catch block. this works great when you exec the powershell script locally, but the specifics of Seemingly when invoked in this bytewise way, |
Recommend installing puffin with ``` powershell -c "irm https://github.com/axodotdev/cargo-dist/releases/latest/download/cargo-dist-installer.ps1 | iex" ``` instead of ``` irm https://github.com/axodotdev/cargo-dist/releases/latest/download/cargo-dist-installer.ps1 | iex ``` to support installing on cmd.exe, the classic non-powershell windows terminal. See axodotdev/cargo-dist#458 for background. This will also be included in the next cargo-dist release.
Recommend installing puffin with ``` powershell -c "irm https://github.com/axodotdev/cargo-dist/releases/latest/download/cargo-dist-installer.ps1 | iex" ``` instead of ``` irm https://github.com/axodotdev/cargo-dist/releases/latest/download/cargo-dist-installer.ps1 | iex ``` to support installing on cmd.exe, the classic non-powershell windows terminal. See axodotdev/cargo-dist#458 for background. This will also be included in the next cargo-dist release.
Recommend installing uv on windows with ``` powershell -c "irm https://astral.sh/uv/install.ps1 | iex" ``` instead of ``` irm https://astral.sh/uv/install.ps1 | iex ``` to support installing on cmd.exe, the classic non-powershell windows command prompt. See axodotdev/cargo-dist#458 for background. This will also be included in the next cargo-dist release. I have confirmed this passes on * Command Prompt * Windows PowerShell * PowerShell * git bash Closes #1750 CC @12932 this fixes the uv command prompt installation.
See also: axodotdev/oranda#393
We currently emit irm-iex (the windows version of curl-sh) exprs of the form:
This expression only works in powershell, and will fail if pasted into e.g. cmd.exe. Wrapping it in "launch powershell" as follows would make it work more universally, though I don't know if there's Weird Implications:
The text was updated successfully, but these errors were encountered: