From 5a64558bb929f7d3da44a893b1d3ba029eed82c7 Mon Sep 17 00:00:00 2001 From: Tomas Kracmar Date: Fri, 7 Nov 2025 16:27:00 +0100 Subject: [PATCH] Fix PS 5.1 -Depth handling --- .gitignore | 3 ++- Prepare-KHDBStorage.ps1 | 4 ++-- Update-KHDB.ps1 | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index b911196..3fb5d9c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ khdb.txt khdb.txt.zip ElysiumSettings.txt -/Reports \ No newline at end of file +/Reports +/khdb-shards diff --git a/Prepare-KHDBStorage.ps1 b/Prepare-KHDBStorage.ps1 index 5cf6e62..d5ffc1e 100644 --- a/Prepare-KHDBStorage.ps1 +++ b/Prepare-KHDBStorage.ps1 @@ -963,7 +963,7 @@ if ($UploadOnly) { } try { - $manifestObject = (Get-Content -LiteralPath $manifestPath -Encoding UTF8 -Raw) | ConvertFrom-Json -Depth 6 + $manifestObject = (Get-Content -LiteralPath $manifestPath -Encoding UTF8 -Raw) | ConvertFrom-Json } catch { throw "Failed to parse manifest '$manifestPath': $($_.Exception.Message)" } @@ -1032,7 +1032,7 @@ if ($UploadOnly) { } if (Test-Path -LiteralPath $resolvedCheckpointPath) { try { - $resumeState = (Get-Content -LiteralPath $resolvedCheckpointPath -Encoding UTF8 -Raw) | ConvertFrom-Json -Depth 6 + $resumeState = (Get-Content -LiteralPath $resolvedCheckpointPath -Encoding UTF8 -Raw) | ConvertFrom-Json } catch { throw "Failed to parse checkpoint '$resolvedCheckpointPath': $($_.Exception.Message)" } diff --git a/Update-KHDB.ps1 b/Update-KHDB.ps1 index 3e2d66c..3a7b934 100644 --- a/Update-KHDB.ps1 +++ b/Update-KHDB.ps1 @@ -392,7 +392,7 @@ function Combine-StoragePath { function Load-Manifest { param([string]$Path) $raw = Get-Content -LiteralPath $Path -Encoding UTF8 -Raw - return $raw | ConvertFrom-Json -Depth 8 + return $raw | ConvertFrom-Json } function Validate-Manifest {