Scoop
Scoop copied to clipboard
[Bug] info command with "-" char in package name
Bug Report
Current Behavior
I just tried "scoop info icaros-np" and got this output:
C:\Users\Admin>scoop info icaros-np
Get-Date : Impossibile associare l'oggetto di input a qualsiasi parametro del comando. Il comando
non accetta l'input da pipeline oppure l'input e le relative proprietà non corrispondono ad alcun
parametro che accetta l'input da pipeline.
In C:\Users\Admin\scoop\apps\scoop\current\libexec\scoop-info.ps1:90 car:44
+ $item.'Updated at' = $gitinfo[0] | Get-Date
+ ~~~~~~~~
+ CategoryInfo : InvalidArgument: (Sun, 2 Mar 2025 16:37:20 +0000:String) [Get-Date],
ParameterBindingException
+ FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.GetDateCommand
Name : icaros-np
Description : Collection of shell extensions that provide File Explorer thumbnails for a variety
of video formats.
Version : 3.3.4_b1
Bucket : nonportable
Website : https://www.majorgeeks.com/files/details/icaros.html
License : Freeware
Updated at :
Updated by : github-actions[bot]
Installed : 3.3.4_b1
Binaries : IcarosConfig.exe
Shortcuts : Icaros
Expected Behavior
If the "-" char would not bother the output would be as for all the other packages :
C:\Users\Admin>scoop info icaros-np
Name : icaros-np
Description : Collection of shell extensions that provide File Explorer thumbnails for a variety
of video formats.
Version : 3.3.4_b1
Bucket : nonportable
Website : https://www.majorgeeks.com/files/details/icaros.html
License : Freeware
Updated at :
Updated by : github-actions[bot]
Installed : 3.3.4_b1
Binaries : IcarosConfig.exe
Shortcuts : Icaros
System details
Windows version: [e.g. 7, 8, 10, 11] W10
OS architecture: [e.g. 32bit, 64bit, arm64] 64bit
PowerShell version: [output of "$($PSVersionTable.PSVersion)"]
5 1 19041 5247
Cannot reproduce.
Try re-adding nonportable bucket: scoop bucket rm nonportable; scoop bucket add nonportable
It is probably a locale issue. Passing an RFC2822-formatted time string to Get-Date may result in parsing failures depending on the system locale.
See also:
- https://git-scm.com/docs/git-log#Documentation/git-log.txt-aD
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-date?view=powershell-5.1#description
I reproduced this bug with the following command:
Get-Culture
scoop info icaros-np
Set-Culture 'it-IT'
powershell #restart powershell
Get-Culture
scoop info icaros-np
"Sun, 2 Mar 2025 16:37:20 +0000" | Get-Date