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

[BUG] Manifest Download Error with Powershell 7 #2993

Open
4 tasks done
JAK1047 opened this issue Nov 18, 2024 · 1 comment
Open
4 tasks done

[BUG] Manifest Download Error with Powershell 7 #2993

JAK1047 opened this issue Nov 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working powershell ready-to-go
Milestone

Comments

@JAK1047
Copy link
Contributor

JAK1047 commented Nov 18, 2024

Please confirm these before moving forward

  • I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions.
  • This issue is about a bug (if it is not, please use the correct template).

UniGetUI Version

3.1.4 Beta 1

Windows version, edition, and architecture

Microsoft Windows 11 Pro 10.0.22631 N/A Build 22631

Describe your issue

With the recent beta changes to fix the Powershell 7 Repos I can now see packages correctly, but noticed an error in the UnigetLogs mentioning a failure to download the manifest for one of the modules. (Also mentions a failure to download the manifest for the manager itself)

image

If this is just an expected intermittent error feel free to close this issue out I just wanted to mention it in case it was indicative of a problem.

Steps to reproduce the issue

No response

UniGetUI Log

[11/18/2024 5:27:05 PM]    __  __      _ ______     __  __  ______
                          / / / /___  (_) ____/__  / /_/ / / /  _/
                         / / / / __ \/ / / __/ _ \/ __/ / / // /
                        / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                        \____/_/ /_/_/\____/\___/\__/\____/___/
                            Welcome to UniGetUI Version 3.1.4-beta1
[11/18/2024 5:27:05 PM]
[11/18/2024 5:27:05 PM] Build 71
[11/18/2024 5:27:05 PM] Encoding Code Page set to 437
[11/18/2024 5:27:06 PM] Using built-in UniGetUI Elevator
[11/18/2024 5:27:06 PM] Loaded language locale: en
[11/18/2024 5:27:06 PM] Lang files were updated successfully from GitHub
[11/18/2024 5:27:07 PM] Downloaded new icons and screenshots successfully!
[11/18/2024 5:27:07 PM] Command vcpkg was not found on the system
[11/18/2024 5:27:07 PM] Command npm was not found on the system
[11/18/2024 5:27:07 PM] Command cargo was not found on the system
[11/18/2024 5:27:07 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                        █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                        █ Name: vcpkg
                        █ Enabled: True
                        █ Found: False
                        █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                        █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[11/18/2024 5:27:07 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                        █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                        █ Name: Npm
                        █ Enabled: False
                        █ THE MANAGER IS DISABLED
                        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[11/18/2024 5:27:07 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                        █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                        █ Name: Cargo
                        █ Enabled: True
                        █ Found: False
                        █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                        █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[11/18/2024 5:27:07 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                        █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                        █ Name: .NET Tool
                        █ Enabled: False
                        █ THE MANAGER IS DISABLED
                        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[11/18/2024 5:27:07 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                        █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                        █ Name: Pip
                        █ Enabled: False
                        █ THE MANAGER IS DISABLED
                        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[11/18/2024 5:27:07 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                        █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                        █ Name: Winget
                        █ Enabled: True
                        █ Found: True
                        █ Fancy exe name: winget.exe
                        █ Executable path: C:\Users\Joshu\AppData\Local\Microsoft\WindowsApps\winget.exe
                        █ Call arguments: 
                        █ Version: 
                        █   System WinGet CLI Version: v1.9.25200
                        █   Using Native WinGet helper (COM Api)
                        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[11/18/2024 5:27:08 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                        █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                        █ Name: PowerShell7
                        █ Enabled: True
                        █ Found: True
                        █ Fancy exe name: pwsh.exe
                        █ Executable path: C:\Program Files\PowerShell\7\pwsh.exe
                        █ Call arguments:  -NoProfile -Command
                        █ Version: 
                        █   PowerShell 7.4.6
                        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[11/18/2024 5:27:08 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                        █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                        █ Name: Chocolatey
                        █ Enabled: True
                        █ Found: True
                        █ Fancy exe name: choco.exe
                        █ Executable path: C:\Users\Joshu\AppData\Local\UniGetUI\Chocolatey\choco.exe
                        █ Call arguments: 
                        █ Version: 
                        █   2.2.2
                        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[11/18/2024 5:27:08 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                        █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                        █ Name: Scoop
                        █ Enabled: True
                        █ Found: True
                        █ Fancy exe name: scoop
                        █ Executable path: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
                        █ Call arguments:  -NoProfile -ExecutionPolicy Bypass -Command scoop
                        █ Version: 
                        █   Current Scoop version:
                        █   859d1db5 chore(release): Bump to version 0.5.2 (#6080)
                        █   
                        █   'main' bucket:
                        █   eb2054e3f winget: Update to version 1.9.25200
                        █   
                        █   'extras' bucket:
                        █   aa594f757 treesheets: Update to version 11859912349
                        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[11/18/2024 5:27:09 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                        █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                        █ Name: PowerShell
                        █ Enabled: True
                        █ Found: True
                        █ Fancy exe name: powershell.exe
                        █ Executable path: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
                        █ Call arguments:  -NoProfile -Command
                        █ Version: 
                        █   Name                           Value                                                                                   
                        █   ----                           -----                                                                                   
                        █   PSVersion                      5.1.22621.4391                                                                          
                        █   PSEdition                      Desktop                                                                                 
                        █   PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
                        █   BuildVersion                   10.0.22621.4391                                                                         
                        █   CLRVersion                     4.0.30319.42000                                                                         
                        █   WSManStackVersion              3.0                                                                                     
                        █   PSRemotingProtocolVersion      2.3                                                                                     
                        █   SerializationVersion           1.1.0.1
                        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[11/18/2024 5:27:09 PM] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[11/18/2024 5:27:09 PM] Dependency Scoop-Search for manager Scoop is present
[11/18/2024 5:27:09 PM] Dependency Git for manager Scoop is present
[11/18/2024 5:27:09 PM] Found 1 installed packages from PowerShell7
[11/18/2024 5:27:10 PM] Ignored updates database was never loaded, so it is going to be loaded now
[11/18/2024 5:27:10 PM] Found 4 installed packages from Scoop
[11/18/2024 5:27:10 PM] Failed to download the PowerShell7 manifest at Url=https://marticliment.com/unigetui//Packages(Id='BurntToast',Version='1.0.0') with status code NotFound
[11/18/2024 5:27:10 PM] No manifest content could be loaded for package BurntToast on manager PowerShell7
[11/18/2024 5:27:10 PM] Found 2 installed packages from Chocolatey
[11/18/2024 5:27:10 PM] Found 0 available updates from Chocolatey
[11/18/2024 5:27:10 PM] Found 0 available updates from PowerShell7
[11/18/2024 5:27:11 PM] Found 3 installed packages from PowerShell
[11/18/2024 5:27:12 PM] Found 0 available updates from PowerShell
[11/18/2024 5:27:13 PM] Found 0 available updates from Winget
[11/18/2024 5:27:13 PM] Found 99 installed packages from Winget
[11/18/2024 5:27:13 PM] Found 4 installed packages from Scoop
[11/18/2024 5:27:14 PM] Found 0 available updates from Scoop

Package Managers Logs

Manager PowerShell 7.x with version:
PowerShell 7.4.6

——————————————————————————————————————————


Logged subprocess-based task on manager PowerShell7. Task type is ListSources
Subprocess executable: "C:\Program Files\PowerShell\7\pwsh.exe"
Command-line arguments: " -NoProfile -Command "Get-PSRepository | Format-Table -Property Name,SourceLocation""
Process start time: 11/18/2024 5:27:07 PM
Process end time:   11/18/2024 5:27:08 PM

-- Process STDOUT
  �[32;1mName     �[0m�[32;1m SourceLocation�[0m
  �[32;1m----     �[0m �[32;1m--------------�[0m
  PSGallery 

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged subprocess-based task on manager PowerShell7. Task type is ListUpdates
Subprocess executable: "C:\Program Files\PowerShell\7\pwsh.exe"
Command-line arguments: ""
Process start time: 11/18/2024 5:27:09 PM
Process end time:   11/18/2024 5:27:10 PM

-- Process STDIN
  function Test-GalleryModuleUpdate {
      param (
          [Parameter(Mandatory,ValueFromPipelineByPropertyName)] [string] $Name,
          [Parameter(Mandatory,ValueFromPipelineByPropertyName)] [version] $Version,
          [Parameter(Mandatory,ValueFromPipelineByPropertyName)] [string] $Repository,
          [switch] $NeedUpdateOnly
      )
      process {
          $URLs = @{}
          @(Get-PSRepository).ForEach({$URLs[$_.Name] = If ($_.Uri) {$_.Uri.AbsoluteUri} Else {$_.SourceLocation}})
          $page = Invoke-WebRequest -Uri ($URLs[$Repository] + "/package/$Name") -UseBasicParsing -ea Ignore
          [version]$latest = Split-Path -Path ($page.BaseResponse.RequestMessage.RequestUri -replace "$Name." -replace ".nupkg") -Leaf
          $needsupdate = $Latest -gt $Version
          if ($needsupdate) {
                  Write-Output($Name + "|" + $Version.ToString() + "|" + $Latest.ToString() + "|" + $Repository)
          }
      }
  }
  Get-PSResource | Test-GalleryModuleUpdate
  
  
  exit

-- Process STDOUT
  PowerShell 7.4.6
  PS C:\Program Files\WingetUI> function Test-GalleryModuleUpdate {
  >>     param (
  >>         [Parameter(Mandatory,ValueFromPipelineByPropertyName)] [string] $Name,
  >>         [Parameter(Mandatory,ValueFromPipelineByPropertyName)] [version] $Version,
  >>         [Parameter(Mandatory,ValueFromPipelineByPropertyName)] [string] $Repository,
  >>         [switch] $NeedUpdateOnly
  >>     )
  >>     process {
  >>         $URLs = @{}
  >>         @(Get-PSRepository).ForEach({$URLs[$_.Name] = If ($_.Uri) {$_.Uri.AbsoluteUri} Else {$_.SourceLocation}})
  >>         $page = Invoke-WebRequest -Uri ($URLs[$Repository] + "/package/$Name") -UseBasicParsing -ea Ignore
  >>         [version]$latest = Split-Path -Path ($page.BaseResponse.RequestMessage.RequestUri -replace "$Name." -replace ".nupkg") -Leaf
  >>         $needsupdate = $Latest -gt $Version
  >>         if ($needsupdate) {
  >>                 Write-Output($Name + "|" + $Version.ToString() + "|" + $Latest.ToString() + "|" + $Repository)
  >>         }
  >>     }
  >> }
  >> Get-PSResource | Test-GalleryModuleUpdate
  >> 
  PS C:\Program Files\WingetUI> 
  PS C:\Program Files\WingetUI> exit

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged subprocess-based task on manager PowerShell7. Task type is ListInstalledPackages
Subprocess executable: "C:\Program Files\PowerShell\7\pwsh.exe"
Command-line arguments: " -NoProfile -Command "Get-InstalledPSResource | Format-Table -Property Name,Version,Repository""
Process start time: 11/18/2024 5:27:09 PM
Process end time:   11/18/2024 5:27:09 PM

-- Process STDOUT
  �[32;1mName      �[0m�[32;1m Version�[0m�[32;1m Repository�[0m
  �[32;1m----      �[0m �[32;1m-------�[0m �[32;1m----------�[0m
  BurntToast 1.0.0   PSGallery

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged subprocess-based task on manager PowerShell7. Task type is ListSources
Subprocess executable: "C:\Program Files\PowerShell\7\pwsh.exe"
Command-line arguments: " -NoProfile -Command "Get-PSRepository | Format-Table -Property Name,SourceLocation""
Process start time: 11/18/2024 5:27:33 PM
Process end time:   11/18/2024 5:27:34 PM

-- Process STDOUT
  �[32;1mName     �[0m�[32;1m SourceLocation�[0m
  �[32;1m----     �[0m �[32;1m--------------�[0m
  PSGallery 

Return code: SUCCESS (0)

——————————————————————————————————————————

Relevant information

No response

Screenshots and videos

No response

@JAK1047 JAK1047 added the bug Something isn't working label Nov 18, 2024
@JAK1047
Copy link
Contributor Author

JAK1047 commented Nov 18, 2024

Also just a note while looking at the code these new changes:

image

Will probably break pulling in source repos again with the newer versions of PowerShellGet as SourceLocation is no longer a valid property

image

image

You could do a calculated property there instead using the same logic added to Test-GalleryModuleUpdate function:

Get-PSRepository | Format-Table -Property Name,@{N='SourceLocation';E={If ($.Uri) {$.Uri.AbsoluteUri} Else {$_.SourceLocation}}}

Powershell 7 with PSGet v3
image

Powershell 5 with PSGet v2
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working powershell ready-to-go
Projects
None yet
Development

No branches or pull requests

2 participants