fix: use -OutFile instead of ambiguous -o in PowerShell install command#3206
Open
raman1236 wants to merge 1 commit intodevspace-sh:mainfrom
Open
fix: use -OutFile instead of ambiguous -o in PowerShell install command#3206raman1236 wants to merge 1 commit intodevspace-sh:mainfrom
raman1236 wants to merge 1 commit intodevspace-sh:mainfrom
Conversation
In PowerShell 7.6.0+, the -o shorthand for Invoke-WebRequest is ambiguous because it matches multiple parameters (-OperationTimeoutSeconds, -OutFile, -OutVariable, -OutBuffer), causing the install command to fail. Replace -o with the full -OutFile parameter in all installation documentation files. Fixes devspace-sh#3199
✅ Deploy Preview for devspace-docs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Replace the ambiguous
-oparameter with the full-OutFileparameter in PowerShell installation commands.Problem
In PowerShell 7.6.0+, the
-oshorthand forInvoke-WebRequestis ambiguous because it matches multiple parameters:-OperationTimeoutSeconds-OutFile-OutVariable-OutBufferThis causes the installation command to fail with:
Fix
Replace
-owith the full-OutFileparameter in all 3 installation documentation files:docs/pages/_partials/install-cli.mdxdocs/versioned_docs/version-4.x/getting-started/installation.mdxdocs/versioned_docs/version-5.x/fragments/install-cli.mdxFixes #3199