Skip to content
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

topgrade cannot upgrade some powershell modules because they are in use #972

Open
3 of 6 tasks
soredake opened this issue Oct 29, 2024 · 1 comment · May be fixed by #977
Open
3 of 6 tasks

topgrade cannot upgrade some powershell modules because they are in use #972

soredake opened this issue Oct 29, 2024 · 1 comment · May be fixed by #977
Labels
C-bug Something isn't working help wanted Extra attention is needed P-Windows Windows issue

Comments

@soredake
Copy link

Erroneous Behavior

❯ topgrade --no-retry --cleanup --yes --only 'powershell'

── 12:05:24 - Powershell Modules Update ────────────────────────────────────────
Updating modules...
WARNING: The version '0.1.1' of module 'CompletionPredictor' is currently in use. Retry the operation after closing the applications.
WARNING: The version '1.0.4.0' of module 'Microsoft.WinGet.CommandNotFound' is currently in use. Retry the operation after closing the applications.
WARNING: The version '0.2.1' of module 'PSAdvancedShortcut' is currently in use. Retry the operation after closing the applications.

── 12:06:14 - Summary ──────────────────────────────────────────────────────────
Powershell Modules Update: OK

Expected Behavior

topgrade maybe can unload modules before trying to update modules https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/remove-module?view=powershell-7.4

Steps to reproduce

  1. Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
  2. Install-Module -Name posh-git, PSAdvancedShortcut, PSCompletions, CompletionPredictor, Microsoft.WinGet.Client, Microsoft.WinGet.CommandNotFound
  3. $documentsPath = [Environment]::GetFolderPath('MyDocuments')
  4. Import-Module -Name (Get-ChildItem $documentsPath\PowerShell\Modules)
  5. topgrade --no-retry --cleanup --yes --only 'powershell'

Possible Cause (Optional)

Modules cannot be updated because they are in use.

Problem persists without calling from topgrade

  • Yes
  • No

Did you run topgrade through Remote Execution

  • Yes
  • No

If yes, does the issue still occur when you run topgrade directlly in your
remote host

  • Yes
  • No

Additional Details

  • Windows 11 Pro 24H2

  • Installation
    topgrade installed from scoop

  • topgrade 16.0.1

Verbose Output (topgrade -v)

❯ topgrade --no-retry --cleanup --yes --only 'powershell' -v
DEBUG Current system locale is ru-RU
DEBUG Configuration at C:\Users\user\AppData\Roaming\topgrade.toml
DEBUG Loaded configuration: ConfigFile { include: None, misc: Some(Misc { pre_sudo: None, sudo_command: None, disable: Some([Chocolatey, Scoop, Wsl, WslUpdate, Pnpm]), ignore_failures: None, remote_topgrades: None, remote_topgrade_path: None, ssh_arguments: None, tmux_arguments: None, set_title: None, display_time: None, assume_yes: None, no_retry: None, run_in_tmux: None, tmux_session_mode: None, cleanup: None, notify_each_step: None, skip_notify: None, bashit_branch: None, only: None, no_self_update: None, log_filters: None }), pre_commands: Some({}), post_commands: None, commands: Some({"cust_pip3": "python -m pip install --upgrade pip"}), python: Some(Python { enable_pip_review: None, enable_pip_review_local: None, enable_pipupgrade: None, pipupgrade_arguments: None }), composer: Some(Composer { self_update: None }), brew: Some(Brew { greedy_cask: None, greedy_latest: None, greedy_auto_updates: None, autoremove: None, fetch_head: None }), linux: Some(Linux { yay_arguments: None, aura_aur_arguments: None, aura_pacman_arguments: None, arch_package_manager: None, show_arch_news: None, garuda_update_arguments: None, trizen_arguments: None, pikaur_arguments: None, pamac_arguments: None, dnf_arguments: None, nix_arguments: None, nix_env_arguments: None, apt_arguments: None, enable_tlmgr: None, redhat_distro_sync: None, suse_dup: None, rpm_ostree: None, emerge_sync_flags: None, emerge_update_flags: None, home_manager_arguments: None }), git: Some(Git { max_concurrency: None, arguments: None, repos: None, pull_predefined: None }), containers: None, windows: Some(Windows { accept_all_updates: None, self_rename: None, open_remotes_in_new_terminal: None, wsl_update_pre_release: None, wsl_update_use_web_download: None }), npm: Some(NPM { use_sudo: None }), yarn: None, vim: None, firmware: Some(Firmware { upgrade: None }), vagrant: None, flatpak: Some(Flatpak { use_sudo: None }), distrobox: Some(Distrobox { use_root: None, containers: None }), lensfun: None }
DEBUG Version: 16.0.1
DEBUG OS: x86_64-pc-windows-msvc
DEBUG Args { inner: ["C:\\Users\\user\\scoop\\apps\\topgrade\\current\\topgrade.exe", "--no-retry", "--cleanup", "--yes", "--only", "powershell", "-v"] }
DEBUG Binary path: Ok("C:\\Users\\user\\scoop\\apps\\topgrade\\current\\topgrade.exe")
DEBUG self-update Feature Enabled: true
DEBUG Configuration: Config { opt: CommandLineArgs { edit_config: false, show_config_reference: false, run_in_tmux: false, cleanup: true, dry_run: false, no_retry: true, disable: [], only: [Powershell], custom_commands: [], env: [], verbose: true, keep_at_end: false, skip_notify: false, yes: Some([]), disable_predefined_git_repos: false, config: None, remote_host_limit: None, show_skipped: false, log_filter: "warn", gen_completion: None, gen_manpage: false, no_self_update: false }, config_file: ConfigFile { include: None, misc: Some(Misc { pre_sudo: None, sudo_command: None, disable: Some([Chocolatey, Scoop, Wsl, WslUpdate, Pnpm]), ignore_failures: None, remote_topgrades: None, remote_topgrade_path: None, ssh_arguments: None, tmux_arguments: None, set_title: None, display_time: None, assume_yes: None, no_retry: None, run_in_tmux: None, tmux_session_mode: None, cleanup: None, notify_each_step: None, skip_notify: None, bashit_branch: None, only: None, no_self_update: None, log_filters: None }), pre_commands: Some({}), post_commands: None, commands: Some({"cust_pip3": "python -m pip install --upgrade pip"}), python: Some(Python { enable_pip_review: None, enable_pip_review_local: None, enable_pipupgrade: None, pipupgrade_arguments: None }), composer: Some(Composer { self_update: None }), brew: Some(Brew { greedy_cask: None, greedy_latest: None, greedy_auto_updates: None, autoremove: None, fetch_head: None }), linux: Some(Linux { yay_arguments: None, aura_aur_arguments: None, aura_pacman_arguments: None, arch_package_manager: None, show_arch_news: None, garuda_update_arguments: None, trizen_arguments: None, pikaur_arguments: None, pamac_arguments: None, dnf_arguments: None, nix_arguments: None, nix_env_arguments: None, apt_arguments: None, enable_tlmgr: None, redhat_distro_sync: None, suse_dup: None, rpm_ostree: None, emerge_sync_flags: None, emerge_update_flags: None, home_manager_arguments: None }), git: Some(Git { max_concurrency: None, arguments: None, repos: None, pull_predefined: None }), containers: None, windows: Some(Windows { accept_all_updates: None, self_rename: None, open_remotes_in_new_terminal: None, wsl_update_pre_release: None, wsl_update_use_web_download: None }), npm: Some(NPM { use_sudo: None }), yarn: None, vim: None, firmware: Some(Firmware { upgrade: None }), vagrant: None, flatpak: Some(Flatpak { use_sudo: None }), distrobox: Some(Distrobox { use_root: None, containers: None }), lensfun: None }, allowed_steps: [Powershell] }
DEBUG Detected "C:\\Program Files\\WindowsApps\\Microsoft.PowerShell_7.4.6.0_x64__8wekyb3d8bbwe\\pwsh.exe" as "pwsh"
DEBUG Executing command `C:\Program Files\WindowsApps\Microsoft.PowerShell_7.4.6.0_x64__8wekyb3d8bbwe\pwsh.exe -NoProfile -Command 'Split-Path $profile'`
DEBUG Path "C:\\Users\\user\\OneDrive\\Documents\\PowerShell" exists
DEBUG Path "C:\\Users\\user\\AppData\\Roaming\\.emacs.d" doesn't exist
DEBUG Cannot find "doas"
DEBUG Detected "C:\\WINDOWS\\system32\\sudo.exe" as "sudo"
DEBUG Step "Powershell Modules Update"

── 12:11:05 - Powershell Modules Update ────────────────────────────────────────
Updating modules...
DEBUG Executing command C:\Program Files\WindowsApps\Microsoft.PowerShell_7.4.6.0_x64__8wekyb3d8bbwe\pwsh.exe -NoProfile -Command 'Update-Module -Verbose -Force'
VERBOSE: Acquiring providers for assembly: C:\program files\windowsapps\microsoft.powershell_7.4.6.0_x64__8wekyb3d8bbwe\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
VERBOSE: Acquiring providers for assembly: C:\program files\windowsapps\microsoft.powershell_7.4.6.0_x64__8wekyb3d8bbwe\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
VERBOSE: Acquiring providers for assembly: C:\program files\windowsapps\microsoft.powershell_7.4.6.0_x64__8wekyb3d8bbwe\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
VERBOSE: Acquiring providers for assembly: C:\program files\windowsapps\microsoft.powershell_7.4.6.0_x64__8wekyb3d8bbwe\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
VERBOSE: Checking for updates for module 'CompletionPredictor'.
VERBOSE: Suppressed Verbose Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'True'; IsRegistered = 'True'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'True'; IsRegistered = 'True'.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='CompletionPredictor'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'CompletionPredictor'.
VERBOSE: Performing the operation "Update-Module" on target "Version '0.1.1' of module 'CompletionPredictor', updating to version '0.1.1'".
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\user\OneDrive\Documents\PowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'CompletionPredictor' with version '0.1.1' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='CompletionPredictor'' for ''.
VERBOSE: InstallPackage' - name='CompletionPredictor', version='0.1.1',destination='C:\Users\user\AppData\Local\Temp\1250417827'
VERBOSE: DownloadPackage' - name='CompletionPredictor', version='0.1.1',destination='C:\Users\user\AppData\Local\Temp\1250417827\CompletionPredictor.0.1.1\CompletionPredictor.0.1.1.nupkg', uri='https://www.powershellgallery.com/api/v2/package/CompletionPredictor/0.1.1'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/CompletionPredictor/0.1.1'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/CompletionPredictor/0.1.1'.
VERBOSE: Completed downloading 'CompletionPredictor'.
VERBOSE: InstallPackageLocal' - name='CompletionPredictor', version='0.1.1',destination='C:\Users\user\AppData\Local\Temp\1250417827'
VERBOSE: Validating the 'CompletionPredictor' module contents under 'C:\Users\user\AppData\Local\Temp\1250417827\CompletionPredictor.0.1.1' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\user\AppData\Local\Temp\1250417827\CompletionPredictor.0.1.1'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'CompletionPredictor'.
VERBOSE: Catalog file 'CompletionPredictor.cat' is not found in the contents of the module 'CompletionPredictor' being installed.
VERBOSE: Valid authenticode signature found in the file 'CompletionPredictor.psd1' for the module 'CompletionPredictor'.
VERBOSE: For publisher validation, current module 'CompletionPredictor' with version '0.1.1' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: For publisher validation, using the previously-installed module 'CompletionPredictor' with version '0.1.1' under 'C:\Users\user\OneDrive\Documents\PowerShell\Modules\CompletionPredictor\0.1.1' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'CompletionPredictor' with version '0.1.1' matches with the authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'CompletionPredictor' with version '0.1.1'.
VERBOSE: Checking for possible command collisions for the module 'CompletionPredictor' commands.
WARNING: The version '0.1.1' of module 'CompletionPredictor' is currently in use. Retry the operation after closing the applications.
VERBOSE: Module 'CompletionPredictor' is in currently in use or you don't have the required permissions.
VERBOSE: Checking for updates for module 'Microsoft.WinGet.Client'.
VERBOSE: Suppressed Verbose Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'True'; IsRegistered = 'True'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'True'; IsRegistered = 'True'.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Microsoft.WinGet.Client'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'Microsoft.WinGet.Client'.
VERBOSE: Performing the operation "Update-Module" on target "Version '1.9.25180' of module 'Microsoft.WinGet.Client', updating to version '1.9.25180'".
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\user\OneDrive\Documents\PowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'Microsoft.WinGet.Client' with version '1.9.25180' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Microsoft.WinGet.Client'' for ''.
VERBOSE: InstallPackage' - name='Microsoft.WinGet.Client', version='1.9.25180',destination='C:\Users\user\AppData\Local\Temp\656243511'
VERBOSE: DownloadPackage' - name='Microsoft.WinGet.Client', version='1.9.25180',destination='C:\Users\user\AppData\Local\Temp\656243511\Microsoft.WinGet.Client.1.9.25180\Microsoft.WinGet.Client.1.9.25180.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Microsoft.WinGet.Client/1.9.25180'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Microsoft.WinGet.Client/1.9.25180'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Microsoft.WinGet.Client/1.9.25180'.
VERBOSE: Completed downloading 'Microsoft.WinGet.Client'.
VERBOSE: InstallPackageLocal' - name='Microsoft.WinGet.Client', version='1.9.25180',destination='C:\Users\user\AppData\Local\Temp\656243511'
VERBOSE: Validating the 'Microsoft.WinGet.Client' module contents under 'C:\Users\user\AppData\Local\Temp\656243511\Microsoft.WinGet.Client.1.9.25180' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\user\AppData\Local\Temp\656243511\Microsoft.WinGet.Client.1.9.25180'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'Microsoft.WinGet.Client'.
VERBOSE: Catalog file 'Microsoft.WinGet.Client.cat' is not found in the contents of the module 'Microsoft.WinGet.Client' being installed.
VERBOSE: Valid authenticode signature found in the file 'Microsoft.WinGet.Client.psd1' for the module 'Microsoft.WinGet.Client'.
VERBOSE: For publisher validation, current module 'Microsoft.WinGet.Client' with version '1.9.25180' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: For publisher validation, using the previously-installed module 'Microsoft.WinGet.Client' with version '1.9.25180' under 'C:\Users\user\OneDrive\Documents\PowerShell\Modules\Microsoft.WinGet.Client\1.9.25180' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'Microsoft.WinGet.Client' with version '1.9.25180' matches with the authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'Microsoft.WinGet.Client' with version '1.9.25180'.
VERBOSE: Checking for possible command collisions for the module 'Microsoft.WinGet.Client' commands.
VERBOSE: Module 'Microsoft.WinGet.Client' was installed successfully to path 'C:\Users\user\OneDrive\Documents\PowerShell\Modules\Microsoft.WinGet.Client\1.9.25180'.
VERBOSE: Checking for updates for module 'Microsoft.WinGet.CommandNotFound'.
VERBOSE: Suppressed Verbose Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'True'; IsRegistered = 'True'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'True'; IsRegistered = 'True'.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Microsoft.WinGet.CommandNotFound'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'Microsoft.WinGet.CommandNotFound'.
VERBOSE: Performing the operation "Update-Module" on target "Version '1.0.4.0' of module 'Microsoft.WinGet.CommandNotFound', updating to version '1.0.4.0'".
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\user\OneDrive\Documents\PowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'Microsoft.WinGet.CommandNotFound' with version '1.0.4.0' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Microsoft.WinGet.CommandNotFound'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Microsoft.WinGet.Client'' for ''.
VERBOSE: InstallPackage' - name='Microsoft.WinGet.Client', version='1.9.25180',destination='C:\Users\user\AppData\Local\Temp\116123545'
VERBOSE: DownloadPackage' - name='Microsoft.WinGet.Client', version='1.9.25180',destination='C:\Users\user\AppData\Local\Temp\116123545\Microsoft.WinGet.Client.1.9.25180\Microsoft.WinGet.Client.1.9.25180.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Microsoft.WinGet.Client/1.9.25180'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Microsoft.WinGet.Client/1.9.25180'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Microsoft.WinGet.Client/1.9.25180'.
VERBOSE: Completed downloading 'Microsoft.WinGet.Client'.
VERBOSE: InstallPackageLocal' - name='Microsoft.WinGet.Client', version='1.9.25180',destination='C:\Users\user\AppData\Local\Temp\116123545'
VERBOSE: InstallPackage' - name='Microsoft.WinGet.CommandNotFound', version='1.0.4.0',destination='C:\Users\user\AppData\Local\Temp\116123545'
VERBOSE: DownloadPackage' - name='Microsoft.WinGet.CommandNotFound', version='1.0.4.0',destination='C:\Users\user\AppData\Local\Temp\116123545\Microsoft.WinGet.CommandNotFound.1.0.4.0\Microsoft.WinGet.CommandNotFound.1.0.4.0.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Microsoft.WinGet.CommandNotFound/1.0.4'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Microsoft.WinGet.CommandNotFound/1.0.4'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Microsoft.WinGet.CommandNotFound/1.0.4'.
VERBOSE: Completed downloading 'Microsoft.WinGet.CommandNotFound'.
VERBOSE: InstallPackageLocal' - name='Microsoft.WinGet.CommandNotFound', version='1.0.4.0',destination='C:\Users\user\AppData\Local\Temp\116123545'
VERBOSE: Validating the 'Microsoft.WinGet.Client' module contents under 'C:\Users\user\AppData\Local\Temp\116123545\Microsoft.WinGet.Client.1.9.25180' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\user\AppData\Local\Temp\116123545\Microsoft.WinGet.Client.1.9.25180'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'Microsoft.WinGet.Client'.
VERBOSE: Catalog file 'Microsoft.WinGet.Client.cat' is not found in the contents of the module 'Microsoft.WinGet.Client' being installed.
VERBOSE: Valid authenticode signature found in the file 'Microsoft.WinGet.Client.psd1' for the module 'Microsoft.WinGet.Client'.
VERBOSE: For publisher validation, current module 'Microsoft.WinGet.Client' with version '1.9.25180' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: For publisher validation, using the previously-installed module 'Microsoft.WinGet.Client' with version '1.9.25180' under 'C:\Users\user\OneDrive\Documents\PowerShell\Modules\Microsoft.WinGet.Client\1.9.25180' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'Microsoft.WinGet.Client' with version '1.9.25180' matches with the authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'Microsoft.WinGet.Client' with version '1.9.25180'.
VERBOSE: Checking for possible command collisions for the module 'Microsoft.WinGet.Client' commands.
VERBOSE: Installing the dependency module 'Microsoft.WinGet.Client' with version '1.9.25180' for the module 'Microsoft.WinGet.CommandNotFound'.
VERBOSE: Module 'Microsoft.WinGet.Client' was installed successfully to path 'C:\Users\user\OneDrive\Documents\PowerShell\Modules\Microsoft.WinGet.Client\1.9.25180'.
VERBOSE: Validating the 'Microsoft.WinGet.CommandNotFound' module contents under 'C:\Users\user\AppData\Local\Temp\116123545\Microsoft.WinGet.CommandNotFound.1.0.4.0' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\user\AppData\Local\Temp\116123545\Microsoft.WinGet.CommandNotFound.1.0.4.0'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'Microsoft.WinGet.CommandNotFound'.
VERBOSE: Catalog file 'Microsoft.WinGet.CommandNotFound.cat' is not found in the contents of the module 'Microsoft.WinGet.CommandNotFound' being installed.
VERBOSE: Valid authenticode signature found in the file 'Microsoft.WinGet.CommandNotFound.psd1' for the module 'Microsoft.WinGet.CommandNotFound'.
VERBOSE: For publisher validation, current module 'Microsoft.WinGet.CommandNotFound' with version '1.0.4.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: For publisher validation, using the previously-installed module 'Microsoft.WinGet.CommandNotFound' with version '1.0.4.0' under 'C:\Users\user\OneDrive\Documents\PowerShell\Modules\Microsoft.WinGet.CommandNotFound\1.0.4.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'Microsoft.WinGet.CommandNotFound' with version '1.0.4.0' matches with the authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'Microsoft.WinGet.CommandNotFound' with version '1.0.4.0'.
VERBOSE: Checking for possible command collisions for the module 'Microsoft.WinGet.CommandNotFound' commands.
WARNING: The version '1.0.4.0' of module 'Microsoft.WinGet.CommandNotFound' is currently in use. Retry the operation after closing the applications.
VERBOSE: Module 'Microsoft.WinGet.CommandNotFound' is in currently in use or you don't have the required permissions.
VERBOSE: Checking for updates for module 'posh-git'.
VERBOSE: Suppressed Verbose Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'True'; IsRegistered = 'True'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'True'; IsRegistered = 'True'.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='posh-git'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'posh-git'.
VERBOSE: Performing the operation "Update-Module" on target "Version '1.1.0' of module 'posh-git', updating to version '1.1.0'".
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\user\OneDrive\Documents\PowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'posh-git' with version '1.1.0' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='posh-git'' for ''.
VERBOSE: InstallPackage' - name='posh-git', version='1.1.0',destination='C:\Users\user\AppData\Local\Temp\498298704'
VERBOSE: DownloadPackage' - name='posh-git', version='1.1.0',destination='C:\Users\user\AppData\Local\Temp\498298704\posh-git.1.1.0\posh-git.1.1.0.nupkg', uri='https://www.powershellgallery.com/api/v2/package/posh-git/1.1.0'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/posh-git/1.1.0'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/posh-git/1.1.0'.
VERBOSE: Completed downloading 'posh-git'.
VERBOSE: InstallPackageLocal' - name='posh-git', version='1.1.0',destination='C:\Users\user\AppData\Local\Temp\498298704'
VERBOSE: Validating the 'posh-git' module contents under 'C:\Users\user\AppData\Local\Temp\498298704\posh-git.1.1.0' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\user\AppData\Local\Temp\498298704\posh-git.1.1.0'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'posh-git'.
VERBOSE: Catalog file 'posh-git.cat' is not found in the contents of the module 'posh-git' being installed.
VERBOSE: For publisher validation, current module 'posh-git' with version '1.1.0' with publisher name '' from root certificate authority ''. Is this module signed by Microsoft: 'False'.
VERBOSE: For publisher validation, using the previously-installed module 'posh-git' with version '1.1.0' under 'C:\Users\user\OneDrive\Documents\PowerShell\Modules\posh-git\1.1.0' with publisher name '' from root certificate authority ''. Is this module signed by Microsoft: 'False'.
VERBOSE: Checking for possible command collisions for the module 'posh-git' commands.
VERBOSE: Module 'posh-git' was installed successfully to path 'C:\Users\user\OneDrive\Documents\PowerShell\Modules\posh-git\1.1.0'.
VERBOSE: Checking for updates for module 'PSAdvancedShortcut'.
VERBOSE: Suppressed Verbose Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'True'; IsRegistered = 'True'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'True'; IsRegistered = 'True'.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSAdvancedShortcut'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'PSAdvancedShortcut'.
VERBOSE: Performing the operation "Update-Module" on target "Version '0.2.1' of module 'PSAdvancedShortcut', updating to version '0.2.1'".
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\user\OneDrive\Documents\PowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PSAdvancedShortcut' with version '0.2.1' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSAdvancedShortcut'' for ''.
VERBOSE: InstallPackage' - name='PSAdvancedShortcut', version='0.2.1',destination='C:\Users\user\AppData\Local\Temp\571896886'
VERBOSE: DownloadPackage' - name='PSAdvancedShortcut', version='0.2.1',destination='C:\Users\user\AppData\Local\Temp\571896886\PSAdvancedShortcut.0.2.1\PSAdvancedShortcut.0.2.1.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PSAdvancedShortcut/0.2.1'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSAdvancedShortcut/0.2.1'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSAdvancedShortcut/0.2.1'.
VERBOSE: Completed downloading 'PSAdvancedShortcut'.
VERBOSE: InstallPackageLocal' - name='PSAdvancedShortcut', version='0.2.1',destination='C:\Users\user\AppData\Local\Temp\571896886'
VERBOSE: Validating the 'PSAdvancedShortcut' module contents under 'C:\Users\user\AppData\Local\Temp\571896886\PSAdvancedShortcut.0.2.1' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\user\AppData\Local\Temp\571896886\PSAdvancedShortcut.0.2.1'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'PSAdvancedShortcut'.
VERBOSE: Catalog file 'PSAdvancedShortcut.cat' is not found in the contents of the module 'PSAdvancedShortcut' being installed.
VERBOSE: For publisher validation, current module 'PSAdvancedShortcut' with version '0.2.1' with publisher name '' from root certificate authority ''. Is this module signed by Microsoft: 'False'.
VERBOSE: For publisher validation, using the previously-installed module 'PSAdvancedShortcut' with version '0.2.1' under 'C:\Users\user\OneDrive\Documents\PowerShell\Modules\PSAdvancedShortcut\0.2.1' with publisher name '' from root certificate authority ''. Is this module signed by Microsoft: 'False'.
VERBOSE: Checking for possible command collisions for the module 'PSAdvancedShortcut' commands.
WARNING: The version '0.2.1' of module 'PSAdvancedShortcut' is currently in use. Retry the operation after closing the applications.
VERBOSE: Module 'PSAdvancedShortcut' is in currently in use or you don't have the required permissions.
VERBOSE: Checking for updates for module 'PSCompletions'.
VERBOSE: Suppressed Verbose Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'True'; IsRegistered = 'True'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'True'; IsRegistered = 'True'.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSCompletions'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'PSCompletions'.
VERBOSE: Performing the operation "Update-Module" on target "Version '5.0.6' of module 'PSCompletions', updating to version '5.0.6'".
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\user\OneDrive\Documents\PowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PSCompletions' with version '5.0.6' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSCompletions'' for ''.
VERBOSE: InstallPackage' - name='PSCompletions', version='5.0.6',destination='C:\Users\user\AppData\Local\Temp\998798353'
VERBOSE: DownloadPackage' - name='PSCompletions', version='5.0.6',destination='C:\Users\user\AppData\Local\Temp\998798353\PSCompletions.5.0.6\PSCompletions.5.0.6.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PSCompletions/5.0.6'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSCompletions/5.0.6'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSCompletions/5.0.6'.
VERBOSE: Completed downloading 'PSCompletions'.
VERBOSE: InstallPackageLocal' - name='PSCompletions', version='5.0.6',destination='C:\Users\user\AppData\Local\Temp\998798353'
VERBOSE: Validating the 'PSCompletions' module contents under 'C:\Users\user\AppData\Local\Temp\998798353\PSCompletions.5.0.6' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\user\AppData\Local\Temp\998798353\PSCompletions.5.0.6'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'PSCompletions'.
VERBOSE: Catalog file 'PSCompletions.cat' is not found in the contents of the module 'PSCompletions' being installed.
VERBOSE: For publisher validation, current module 'PSCompletions' with version '5.0.6' with publisher name '' from root certificate authority ''. Is this module signed by Microsoft: 'False'.
VERBOSE: For publisher validation, using the previously-installed module 'PSCompletions' with version '5.0.6' under 'C:\Users\user\OneDrive\Documents\PowerShell\Modules\PSCompletions\5.0.6' with publisher name '' from root certificate authority ''. Is this module signed by Microsoft: 'False'.
VERBOSE: Checking for possible command collisions for the module 'PSCompletions' commands.
VERBOSE: Module 'PSCompletions' was installed successfully to path 'C:\Users\user\OneDrive\Documents\PowerShell\Modules\PSCompletions\5.0.6'.

── 12:11:42 - Summary ──────────────────────────────────────────────────────────
Powershell Modules Update: OK
DEBUG Desktop notification: Topgrade finished successfully

@soredake soredake added the C-bug Something isn't working label Oct 29, 2024
@SteveLauC SteveLauC added P-Windows Windows issue help wanted Extra attention is needed labels Oct 30, 2024
@niStee
Copy link
Contributor

niStee commented Nov 2, 2024

#977

@SteveLauC SteveLauC linked a pull request Nov 3, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Something isn't working help wanted Extra attention is needed P-Windows Windows issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants