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

ACR Integration: Add JSON metadata to package manifest in ACR registries #1522

Merged
merged 10 commits into from
Jan 23, 2024

Conversation

alerickson
Copy link
Member

@alerickson alerickson commented Jan 17, 2024

PR Summary

Add metadata JSON string to package manifest in ACR registries.

image

PR Context

Resolves #1515

PR Checklist


FileInfo nupkgFile = new FileInfo(fullNupkgFile);
var fileSize = nupkgFile.Length;
var fileName = System.IO.Path.GetFileName(fullNupkgFile);
string fileContent = CreateJsonContent(digest, emptyDigest, fileSize, fileName);
string fileContent = CreateJsonContent(nupkgDigest, configDigest, configDigest, fileSize, fileName, jsonString);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the value of configDigest and metadataDigest the same? Earlier there was emptydigest

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

metadataDigest is no longer used, nor is emptyDigest. I removed the metadataDigest parameter because that should no longer be there.

@alerickson alerickson merged commit 17a6178 into PowerShell:master Jan 23, 2024
4 checks passed
@alerickson alerickson deleted the publishMetadata branch January 23, 2024 19:04
alerickson added a commit to alerickson/PSResourceGet that referenced this pull request Apr 1, 2024
alerickson added a commit to alerickson/PSResourceGet that referenced this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support module metadata in ACR
3 participants