-
Notifications
You must be signed in to change notification settings - Fork 100
Closed
Labels
Description
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
If you try to update all resources with a prerelease only resource then it will fail to find those Related issue: #890.
Expected behavior
# worksActual behavior
Update-PSResource -PassThru
Update-PSResource: Package with search criteria: Name Microsoft.PowerShell.PSResourceGet could not be found due to: Package does not exist on the server..
Update-PSResource: Package with search criteria: Name Microsoft.PowerShell.TextUtility could not be found due to: Package does not exist on the server..
Update-PSResource: Object reference not set to an instance of an object.Error details
Exception :
Type : System.NullReferenceException
TargetSite :
Name : MoveNext
DeclaringType : Microsoft.PowerShell.PSResourceGet.Cmdlets.FindHelper+<FindDependencyPackages>d__21,
Microsoft.PowerShell.PSResourceGet, Version=0.5.22.0, Culture=neutral, PublicKeyToken=null
MemberType : Method
Module : Microsoft.PowerShell.PSResourceGet.dll
Message : Object reference not set to an instance of an object.
Source : Microsoft.PowerShell.PSResourceGet
HResult : -2147467261
StackTrace :
at Microsoft.PowerShell.PSResourceGet.Cmdlets.FindHelper.FindDependencyPackages(ServerApiCall currentServer,
ResponseUtil currentResponseUtil, PSResourceInfo currentPkg, PSRepositoryInfo repository, HashSet`1
foundPkgs)+MoveNext()
at Microsoft.PowerShell.PSResourceGet.Cmdlets.FindHelper.SearchByNames(ServerApiCall currentServer, ResponseUtil
currentResponseUtil, PSRepositoryInfo repository)+MoveNext()
at Microsoft.PowerShell.PSResourceGet.Cmdlets.FindHelper.FindByResourceName(String[] name, ResourceType type,
VersionRange versionRange, NuGetVersion nugetVersion, VersionType versionType, String version, Boolean prerelease,
String[] tag, String[] repository, Boolean includeDependencies)+MoveNext()
at Microsoft.PowerShell.PSResourceGet.Cmdlets.UpdatePSResource.ProcessPackageNames(String[] namesToProcess,
VersionRange versionRange, NuGetVersion nuGetVersion, VersionType versionType)
at Microsoft.PowerShell.PSResourceGet.Cmdlets.UpdatePSResource.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
CategoryInfo : NotSpecified: (:) [Update-PSResource], NullReferenceException
FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.PSResourceGet.Cmdlets.UpdatePSResource
InvocationInfo :
MyCommand : Update-PSResource
ScriptLineNumber : 1
OffsetInLine : 1
HistoryId : 14
Line : Update-PSResource -PassThru
Statement : Update-PSResource -PassThru
PositionMessage : At line:1 char:1
+ Update-PSResource -PassThru
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
InvocationName : Update-PSResource
CommandOrigin : Internal
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1Environment data
7.4-preview3
beta22Visuals
No response
Reactions are currently unavailable