From 9ffb9b0d5dc377854205a2964696327eaecb93e1 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 11 Jun 2024 18:06:05 +0200 Subject: [PATCH] fix missing fields in AVPRClient type extensions --- scripts/publish-pending-packages.fsx | 3 ++- src/AVPRClient/AVPRClient.csproj | 2 +- src/AVPRClient/Extensions.cs | 3 +++ src/AVPRClient/RELEASE_NOTES.md | 3 +++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/publish-pending-packages.fsx b/scripts/publish-pending-packages.fsx index fe46031..a4344e0 100644 --- a/scripts/publish-pending-packages.fsx +++ b/scripts/publish-pending-packages.fsx @@ -75,7 +75,7 @@ let published_packages = //! Paths are relative to the root of the project, since the script is executed from the repo root in CI let all_indexed_packages = - AVPRRepo.getIndexedPackages() + AVPRRepo.getPreviewIndex() let published_indexed_packages = all_indexed_packages @@ -124,6 +124,7 @@ published_indexed_packages |> Async.RunSynchronously with e -> if isDryRun then + printfn $"[E]: {e.Message}" printfn $"[{i.Metadata.Name}@{i.Metadata.MajorVersion}.{i.Metadata.MinorVersion}.{i.Metadata.PatchVersion}]: Package content hash {repo_hash} does not match the published package" printfn $" Make sure that the package file has not been modified after publication! ({i.RepoPath})" else diff --git a/src/AVPRClient/AVPRClient.csproj b/src/AVPRClient/AVPRClient.csproj index d218145..44c03b8 100644 --- a/src/AVPRClient/AVPRClient.csproj +++ b/src/AVPRClient/AVPRClient.csproj @@ -22,7 +22,7 @@ git $([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/RELEASE_NOTES.md")) README.md - 0.0.5 + 0.0.6 diff --git a/src/AVPRClient/Extensions.cs b/src/AVPRClient/Extensions.cs index bf5316c..86cf269 100644 --- a/src/AVPRClient/Extensions.cs +++ b/src/AVPRClient/Extensions.cs @@ -21,6 +21,7 @@ DateTimeOffset releaseDate return new AVPRClient.ValidationPackage { Name = indexedPackage.Metadata.Name, + Summary = indexedPackage.Metadata.Summary, Description = indexedPackage.Metadata.Description, MajorVersion = indexedPackage.Metadata.MajorVersion, MinorVersion = indexedPackage.Metadata.MinorVersion, @@ -74,6 +75,7 @@ public static AVPRClient.PackageContentHash toPackageContentHash( MD5 md5 = MD5.Create(); return new AVPRClient.PackageContentHash { + PackageName = indexedPackage.Metadata.Name, Hash = Convert.ToHexString(md5.ComputeHash(File.ReadAllBytes(indexedPackage.RepoPath))), PackageMajorVersion = indexedPackage.Metadata.MajorVersion, PackageMinorVersion = indexedPackage.Metadata.MinorVersion, @@ -84,6 +86,7 @@ public static AVPRClient.PackageContentHash toPackageContentHash( { return new AVPRClient.PackageContentHash { + PackageName = indexedPackage.Metadata.Name, Hash = indexedPackage.ContentHash, PackageMajorVersion = indexedPackage.Metadata.MajorVersion, PackageMinorVersion = indexedPackage.Metadata.MinorVersion, diff --git a/src/AVPRClient/RELEASE_NOTES.md b/src/AVPRClient/RELEASE_NOTES.md index 17c722c..6812b97 100644 --- a/src/AVPRClient/RELEASE_NOTES.md +++ b/src/AVPRClient/RELEASE_NOTES.md @@ -1,3 +1,6 @@ +## v0.0.6 +- Fix some missing fields in type extensions + ## v0.0.5 - Regen Client with new `CQCHookEndpoint` field in package metadata