PowerShell / PSResourceGet

PSResourceGet is the package manager for PowerShell
https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet
MIT License
486 stars 92 forks source link

Package metadata missing for ACR packages #1608

Open sdwheeler opened 6 months ago

sdwheeler commented 6 months ago

Prerequisites

Steps to reproduce

I published modules to my ACR repository. When I search for the package, the returned object does not contain any of the metadata from the PrivateData property of the module manifest.

Expected behavior

Show me the data.

Actual behavior

PS> (gmo Documentarian).PrivateData.PSData

Name                           Value
----                           -----
ReleaseNotes                   https://microsoft.github.io/Documentarian/modules/documentarian/changelog
Tags                           {Markdown, Documentation}
ProjectUri                     https://microsoft.github.io/Documentarian/modules/documentarian
LicenseUri                     https://github.com/microsoft/Documentarian/blob/main/LICENSE-CODE

PS> Find-PSResource -Repository ACRDemoRepo -Name Documentarian | select *

AdditionalMetadata       : {[NormalizedVersion, 0.0.1]}
Author                   :
CompanyName              :
Copyright                : (c) Microsoft. All rights reserved.
Dependencies             : {YaYaml}
Description              : Collection of general purpose functions for working with Markdown documents.
IconUri                  :
Includes                 : Microsoft.PowerShell.PSResourceGet.UtilClasses.ResourceIncludes
InstalledDate            :
InstalledLocation        :
IsPrerelease             : False
LicenseUri               :
Name                     : Documentarian
Prerelease               :
ProjectUri               :
PublishedDate            :
ReleaseNotes             :
Repository               : ACRDemoRepo
RepositorySourceLocation : https://psresourcedemo.azurecr.io/
Tags                     : {}
Type                     : Module
UpdatedDate              :
Version                  : 0.0.1

Error details

No response

Environment data

I see the data in the Portal.

{
  "schemaVersion": 2,
  "mediaType": "application/vnd.oci.image.manifest.v1+json",
  "config": {
    "mediaType": "application/vnd.oci.image.config.v1+json",
    "digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "size": 0
  },
  "layers": [
    {
      "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
      "digest": "sha256:9d22491de7620b36c614b8f40491a6818ae2913ddcad434615ab4769d00f4700",
      "size": 25125,
      "annotations": {
        "org.opencontainers.image.title": "Documentarian",
        "org.opencontainers.image.description": "Documentarian.0.0.1.nupkg",
        "metadata": "{\"PowerShellVersion\":\"7.2\",\"CmdletsToExport\":\"*\",\"CompatiblePSEditions\":\"Core\",\"CompanyName\":\"Microsoft\",\"PrivateData\":{\"PSData\":{\"LicenseUri\":\"https://github.com/microsoft/Documentarian/blob/main/LICENSE-CODE\",\"ProjectUri\":\"https://microsoft.github.io/Documentarian/modules/documentarian\",\"ReleaseNotes\":\"https://microsoft.github.io/Documentarian/modules/documentarian/changelog\",\"Tags\":[\"Markdown\",\"Documentation\"]}},\"VariablesToExport\":\"*\",\"Author\":\"PowerShell Docs Team\",\"RootModule\":\"Documentarian.psm1\",\"Description\":\"Collection of general purpose functions for working with Markdown documents.\",\"RequiredModules\":[\"YaYaml\"],\"tags\":\"Markdown Documentation\",\"GUID\":\"2422ec90-815c-4c1d-8ec1-4c9b082f2909\",\"Copyright\":\"(c) Microsoft. All rights reserved.\",\"FunctionsToExport\":[\"Convert-MDLinks\",\"ConvertTo-Contraction\",\"Get-ContentWithoutHeader\",\"Get-Document\",\"Get-DocumentLink\",\"Get-Metadata\",\"Remove-Metadata\",\"Set-Metadata\",\"Update-Metadata\"],\"ModuleVersion\":\"0.0.1\",\"AliasesToExport\":\"*\"}",
        "resourceType": "Module"
      }
    }
  ]
}

Visuals

No response