PowerShell / PowerShell/PSResourceGet
The `AdditionalMetadata` dictionary on the output objects is missing all but one property / entry compared to `Find-Module`
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 576
- Forks
- 114
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 7
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
Find-Module populates the .AdditionalMetadata property of its output objects with a custom object containing properties such as summary, updated, Authors, ...
These are all missing from Find-PSResource's output objects, with the exception of NormalizedVersion (another difference is that the .AdditionalMetadata is now a generic dictionary rather than a custom object).
Possibly related:
- #878
(Find-PSResource CompletionPredictor).AdditionalMetadata
Expected behavior
This is what you get with Find-Module:
summary : Command-line intellisense based on PowerShell auto-completion
updated : 2023-12-22T17:09:11Z
Authors : PowerShell
ItemType : Module
developmentDependency : False
isAbsoluteLatestVersion : True
requireLicenseAcceptance : False
PowerShellVersion : 7.2
PackageManagementProvider : NuGet
lastUpdated : 12/22/2023 5:09:11 PM -05:00
packageSize : 39852
description : Command-line intellisense based on PowerShell auto-completion
copyright : Copyright (c) Microsoft Corporation.
published : 5/3/2023 9:38:39 PM -04:00
versionDownloadCount : 12546
FileList : CompletionPredictor.nuspec|CompletionPredictor.psd1|PowerShell.Predictor.dll|_manifest\spdx_2.2\manifest.spdx.json|_manifest\spdx_2.2\manifest.spdx.json.sha256
NormalizedVersion : 0.1.1
downloadCount : 15250
GUID : dab36133-7065-440d-ac9a-821187afc400
SourceName : PSGallery
tags : PSEdition_Core PSModule
created : 5/3/2023 9:38:39 PM -04:00
CompanyName : Microsoft Corporation
IsPrerelease : false
isLatestVersion : True
Actual behavior
Key Value
--- -----
NormalizedVersion 0.1.1
Error details
No response
Environment data
v1.0.1
Visuals
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing Find-PSResource and the output object's AdditionalMetadata population, then compare it with the Find-Module metadata shown in the report. Done means the repro returns the expected metadata entries, not only NormalizedVersion, while preserving the reported dictionary behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100