Skip to content

Update-PSResource hangs when wildcard is used #522

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

Closed
3 tasks done
StevenBucher98 opened this issue Oct 22, 2021 · 3 comments
Closed
3 tasks done

Update-PSResource hangs when wildcard is used #522

StevenBucher98 opened this issue Oct 22, 2021 · 3 comments
Labels
Area-Update Resolution-Duplicate This issue or pull request already exists Status-Investigating

Comments

@StevenBucher98
Copy link
Collaborator

StevenBucher98 commented Oct 22, 2021

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

I am using the Update-PSResource cmdlet to see about updating packages I have installed. However when I did a wildcard operation Update-PSResource *. Tt gets hung on checking NuGetGallery for the modules I have installed. Running with -Verbose does shows it is checking for Az. within the NuGetGallery but gets hung.

image

Once it is hung, I am unable to exit with Ctrl+C

Expected behavior

Updates all installed modules with newer versions of respective repositories, if hung be able to exit with Ctrl+C

Actual behavior

Gets hung and must restart terminal to get back.

Error details

N/A

Environment data

$PSVersionTable
                           Value
----                           -----
PSVersion                      7.1.4
PSEdition                      Core
GitCommitId                    7.1.4
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Get-Module PowerShellGet

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Binary     3.0.11     beta       PowerShellGet                       {Find-PSResource, Get-InstalledPSResource, Get-PS

Visuals

Exact cmdlet and scenario that gets hung:
image

Verbose output mentioned above.

@StevenBucher98
Copy link
Collaborator Author

@StevenBucher98
Copy link
Collaborator Author

Ctrl+C work is being worked on in https://github.com/PowerShell/PowerShellGet/issues/498

@StevenBucher98
Copy link
Collaborator Author

Closing because duplicate issue in #491, Ctrl+C functionality works as expected in Update-PSResource

@StevenBucher98 StevenBucher98 added the Resolution-Duplicate This issue or pull request already exists label Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Update Resolution-Duplicate This issue or pull request already exists Status-Investigating
Projects
None yet
Development

No branches or pull requests

1 participant