Skip to content

Commit

Permalink
fix missing fields in AVPRClient type extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Jun 11, 2024
1 parent 3cd77f3 commit 9ffb9b0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/publish-pending-packages.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/AVPRClient/AVPRClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<RepositoryType>git</RepositoryType>
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/RELEASE_NOTES.md"))</PackageReleaseNotes>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageVersion>0.0.5</PackageVersion>
<PackageVersion>0.0.6</PackageVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/AVPRClient/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions src/AVPRClient/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 9ffb9b0

Please sign in to comment.