NuGet lock files; report and debug log per run in reports/<timestamp>/

This commit is contained in:
Demo committed 2026-10-11 21:22:32 +02:00
1 parent 32d194743e
commit f25441ffdc
5 files changed
+301 -6

No files matched your search

+10 -3
View File
@@ -2,12 +2,18 @@
# and changes nothing. Found updates are read from the JSON report and printed.
# Renovate requires Node.js >= 24.11
if ([version](node -v).TrimStart('v') -lt [version]'24.11.0') { throw "Renovate requires Node.js >= 24.11, found: $(node -v). E.g.: volta install node@24" }
$reportDir = Join-Path (Join-Path $PSScriptRoot '..') 'reports'
$report = Join-Path $reportDir "$(Get-Date -Format 'yyyy-MM-dd-HH-mm-ss-fff')-renovate-report.json"
New-Item -ItemType Directory -Force -Path $reportDir | Out-Null
# Report and debug log of this run: reports/<timestamp>/
$outDir = Join-Path (Join-Path (Join-Path $PSScriptRoot '..') 'reports') (Get-Date -Format 'yyyy-MM-dd-HH-mm-ss-fff')
$report = Join-Path $outDir 'renovate-report.json'
New-Item -ItemType Directory -Force -Path $outDir | Out-Null
Push-Location (Join-Path $PSScriptRoot '..') # repository root
# Debug log file: console output in the same format, but at debug level
$env:LOG_FILE = Join-Path $outDir 'renovate.log'
$env:LOG_FILE_LEVEL = 'debug'
$env:LOG_FILE_FORMAT = 'pretty'
npx --yes renovate@44.149.3 --platform=local --dry-run=lookup --report-type=file --report-path=$report
Remove-Item Env:LOG_FILE, Env:LOG_FILE_LEVEL, Env:LOG_FILE_FORMAT
Pop-Location
Write-Host "`nAvailable updates:" -ForegroundColor Cyan
@@ -21,3 +27,4 @@ foreach ($manager in $packageFiles.PSObject.Properties) {
}
}
}
Write-Host "Report and debug log: $outDir"