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

+2
View File
@@ -4,6 +4,8 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!-- Versions listed here also apply to transitive dependencies (NuGet raises them to this version) --> <!-- Versions listed here also apply to transitive dependencies (NuGet raises them to this version) -->
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled> <CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<!-- Write packages.lock.json for every project (updated by Renovate together with the versions) -->
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageVersion Include="Newtonsoft.Json" Version="12.0.3" /> <PackageVersion Include="Newtonsoft.Json" Version="12.0.3" />
+249
View File
@@ -0,0 +1,249 @@
{
"version": 2,
"dependencies": {
"net8.0": {
"Serilog.AspNetCore": {
"type": "Direct",
"requested": "[7.0.0, )",
"resolved": "7.0.0",
"contentHash": "F6p6rzOmg/R0EPI/PjJXcAlhCzusW5+xFx8kbsy6mJ6/mHI6wWWPxZbsLPoAYTpMiopKFl7HZhAr//KABGHtBQ==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection": "7.0.0",
"Microsoft.Extensions.Logging": "7.0.0",
"Serilog": "2.12.0",
"Serilog.Extensions.Hosting": "7.0.0",
"Serilog.Formatting.Compact": "1.1.0",
"Serilog.Settings.Configuration": "7.0.0",
"Serilog.Sinks.Console": "4.0.1",
"Serilog.Sinks.Debug": "2.0.0",
"Serilog.Sinks.File": "5.0.0"
}
},
"Swashbuckle.AspNetCore": {
"type": "Direct",
"requested": "[6.5.0, )",
"resolved": "6.5.0",
"contentHash": "FK05XokgjgwlCI6wCT+D4/abtQkL1X1/B9Oas6uIwHFmYrIO9WUD5aLC9IzMs9GnHfUXOtXZ2S43gN1mhs5+aA==",
"dependencies": {
"Microsoft.Extensions.ApiDescription.Server": "6.0.5",
"Swashbuckle.AspNetCore.Swagger": "6.5.0",
"Swashbuckle.AspNetCore.SwaggerGen": "6.5.0",
"Swashbuckle.AspNetCore.SwaggerUI": "6.5.0"
}
},
"Microsoft.Extensions.ApiDescription.Server": {
"type": "Transitive",
"resolved": "6.0.5",
"contentHash": "Ckb5EDBUNJdFWyajfXzUIMRkhf52fHZOQuuZg/oiu8y7zDCVwD0iHhew6MnThjHmevanpxL3f5ci2TtHQEN6bw=="
},
"Microsoft.Extensions.Configuration.Abstractions": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "f34u2eaqIjNO9YLHBz8rozVZ+TcFiFs0F3r7nUJd7FRkVSxk8u4OpoK226mi49MwexHOR2ibP9MFvRUaLilcQQ==",
"dependencies": {
"Microsoft.Extensions.Primitives": "7.0.0"
}
},
"Microsoft.Extensions.Configuration.Binder": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "tgU4u7bZsoS9MKVRiotVMAwHtbREHr5/5zSEV+JPhg46+ox47Au84E3D2IacAaB0bk5ePNaNieTlPrfjbbRJkg==",
"dependencies": {
"Microsoft.Extensions.Configuration.Abstractions": "7.0.0"
}
},
"Microsoft.Extensions.DependencyInjection": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "elNeOmkeX3eDVG6pYVeV82p29hr+UKDaBhrZyWvWLw/EVZSYEkZlQdkp0V39k/Xehs2Qa0mvoCvkVj3eQxNQ1Q==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0"
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "h3j/QfmFN4S0w4C2A6X7arXij/M/OVw3uQHSOFxnND4DyAzO1F9eMX7Eti7lU/OkSthEE0WzRsfT/Dmx86jzCw=="
},
"Microsoft.Extensions.DependencyModel": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "oONNYd71J3LzkWc4fUHl3SvMfiQMYUCo/mDHDEu76hYYxdhdrPYv6fvGv9nnKVyhE9P0h20AU8RZB5OOWQcAXg==",
"dependencies": {
"System.Text.Encodings.Web": "7.0.0",
"System.Text.Json": "7.0.0"
}
},
"Microsoft.Extensions.FileProviders.Abstractions": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "NyawiW9ZT/liQb34k9YqBSNPLuuPkrjMgQZ24Y/xXX1RoiBkLUdPMaQTmxhZ5TYu8ZKZ9qayzil75JX95vGQUg==",
"dependencies": {
"Microsoft.Extensions.Primitives": "7.0.0"
}
},
"Microsoft.Extensions.Hosting.Abstractions": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "43n9Je09z0p/7ViPxfRqs5BUItRLNVh5b6JH40F2Agkh2NBsY/jpNYTtbCcxrHCsA3oRmbR6RJBzUutB4VZvNQ==",
"dependencies": {
"Microsoft.Extensions.Configuration.Abstractions": "7.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0",
"Microsoft.Extensions.FileProviders.Abstractions": "7.0.0"
}
},
"Microsoft.Extensions.Logging": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "Nw2muoNrOG5U5qa2ZekXwudUn2BJcD41e65zwmDHb1fQegTX66UokLWZkJRpqSSHXDOWZ5V0iqhbxOEky91atA==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection": "7.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0",
"Microsoft.Extensions.Logging.Abstractions": "7.0.0",
"Microsoft.Extensions.Options": "7.0.0"
}
},
"Microsoft.Extensions.Logging.Abstractions": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "kmn78+LPVMOWeITUjIlfxUPDsI0R6G0RkeAMBmQxAJ7vBJn4q2dTva7pWi65ceN5vPGjJ9q/Uae2WKgvfktJAw=="
},
"Microsoft.Extensions.Options": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "lP1yBnTTU42cKpMozuafbvNtQ7QcBjr/CcK3bYOGEMH55Fjt+iecXjT6chR7vbgCMqy3PG3aNQSZgo/EuY/9qQ==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0",
"Microsoft.Extensions.Primitives": "7.0.0"
}
},
"Microsoft.Extensions.Primitives": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "um1KU5kxcRp3CNuI8o/GrZtD4AIOXDk+RLsytjZ9QPok3ttLUelLKpilVPuaFT3TFjOhSibUAso0odbOaCDj3Q=="
},
"Microsoft.OpenApi": {
"type": "Transitive",
"resolved": "1.2.3",
"contentHash": "Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw=="
},
"Serilog.Extensions.Hosting": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "AWsDTs6TeCtyXYDWakzLXCOZA3/IdIfBWBwkYAF0ZvVktVr3E15oYP9pfI7GzKaGVmHaJF9TgFQnFEfcnzEkcw==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0",
"Microsoft.Extensions.Hosting.Abstractions": "7.0.0",
"Microsoft.Extensions.Logging.Abstractions": "7.0.0",
"Serilog": "2.12.0",
"Serilog.Extensions.Logging": "7.0.0"
}
},
"Serilog.Extensions.Logging": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "9faU0zNQqU7I6soVhLUMYaGNpgWv6cKlKb2S5AnS8gXxzW/em5Ladm/6FMrWTnX41cdbdGPOWNAo6adi4WaJ6A==",
"dependencies": {
"Microsoft.Extensions.Logging": "7.0.0",
"Serilog": "2.12.0"
}
},
"Serilog.Formatting.Compact": {
"type": "Transitive",
"resolved": "1.1.0",
"contentHash": "pNroKVjo+rDqlxNG5PXkRLpfSCuDOBY0ri6jp9PLe505ljqwhwZz8ospy2vWhQlFu5GkIesh3FcDs4n7sWZODA==",
"dependencies": {
"Serilog": "2.8.0"
}
},
"Serilog.Settings.Configuration": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "MlabSn74uXAGKNv9WWDdGejmsr7cKhsfi98ZtdeK119s4lTLp+hakBtnPm8OvXNUvtXYs2ijXKA0tIy4IMnjWQ==",
"dependencies": {
"Microsoft.Extensions.Configuration.Binder": "7.0.0",
"Microsoft.Extensions.DependencyModel": "7.0.0",
"Serilog": "2.12.0"
}
},
"Serilog.Sinks.Debug": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==",
"dependencies": {
"Serilog": "2.10.0"
}
},
"Serilog.Sinks.File": {
"type": "Transitive",
"resolved": "5.0.0",
"contentHash": "uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==",
"dependencies": {
"Serilog": "2.10.0"
}
},
"Swashbuckle.AspNetCore.Swagger": {
"type": "Transitive",
"resolved": "6.5.0",
"contentHash": "XWmCmqyFmoItXKFsQSwQbEAsjDKcxlNf1l+/Ki42hcb6LjKL8m5Db69OTvz5vLonMSRntYO1XLqz0OP+n3vKnA==",
"dependencies": {
"Microsoft.OpenApi": "1.2.3"
}
},
"Swashbuckle.AspNetCore.SwaggerGen": {
"type": "Transitive",
"resolved": "6.5.0",
"contentHash": "Y/qW8Qdg9OEs7V013tt+94OdPxbRdbhcEbw4NiwGvf4YBcfhL/y7qp/Mjv/cENsQ2L3NqJ2AOu94weBy/h4KvA==",
"dependencies": {
"Swashbuckle.AspNetCore.Swagger": "6.5.0"
}
},
"Swashbuckle.AspNetCore.SwaggerUI": {
"type": "Transitive",
"resolved": "6.5.0",
"contentHash": "OvbvxX+wL8skxTBttcBsVxdh73Fag4xwqEU2edh4JMn7Ws/xJHnY/JB1e9RoCb6XpDxUF3hD9A0Z1lEUx40Pfw=="
},
"System.Text.Encodings.Web": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "OP6umVGxc0Z0MvZQBVigj4/U31Pw72ITihDWP9WiWDm+q5aoe0GaJivsfYGq53o6dxH7DcXWiCTl7+0o2CGdmg=="
},
"System.Text.Json": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "DaGSsVqKsn/ia6RG8frjwmJonfos0srquhw09TlT8KRw5I43E+4gs+/bZj4K0vShJ5H9imCuXupb4RmS+dBy3w==",
"dependencies": {
"System.Text.Encodings.Web": "7.0.0"
}
},
"core": {
"type": "Project",
"dependencies": {
"Newtonsoft.Json": "[12.0.3, )",
"Serilog.Sinks.Console": "[4.1.0, )"
}
},
"Newtonsoft.Json": {
"type": "CentralTransitive",
"requested": "[12.0.3, )",
"resolved": "12.0.3",
"contentHash": "6mgjfnRB4jKMlzHSl+VD+oUc1IebOZabkbyWj2RiTgWwYPPuaK1H97G1sHqGwPlS5npiF5Q0OrxN1wni2n5QWg=="
},
"Serilog": {
"type": "CentralTransitive",
"requested": "[3.0.1, )",
"resolved": "3.0.1",
"contentHash": "E4UmOQ++eNJax1laE+lws7E3zbhKgHsGJbO7ra0yE5smUh+5FfUPIKKBxM3MO1tK4sgpQke6/pLReDxIc/ggNw=="
},
"Serilog.Sinks.Console": {
"type": "CentralTransitive",
"requested": "[4.1.0, )",
"resolved": "4.1.0",
"contentHash": "K6N5q+5fetjnJPvCmkWOpJ/V8IEIoMIB1s86OzBrbxwTyHxdx3pmz4H+8+O/Dc/ftUX12DM1aynx/dDowkwzqg==",
"dependencies": {
"Serilog": "2.10.0"
}
}
}
}
}
+28
View File
@@ -0,0 +1,28 @@
{
"version": 2,
"dependencies": {
"net8.0": {
"Newtonsoft.Json": {
"type": "Direct",
"requested": "[12.0.3, )",
"resolved": "12.0.3",
"contentHash": "6mgjfnRB4jKMlzHSl+VD+oUc1IebOZabkbyWj2RiTgWwYPPuaK1H97G1sHqGwPlS5npiF5Q0OrxN1wni2n5QWg=="
},
"Serilog.Sinks.Console": {
"type": "Direct",
"requested": "[4.1.0, )",
"resolved": "4.1.0",
"contentHash": "K6N5q+5fetjnJPvCmkWOpJ/V8IEIoMIB1s86OzBrbxwTyHxdx3pmz4H+8+O/Dc/ftUX12DM1aynx/dDowkwzqg==",
"dependencies": {
"Serilog": "2.10.0"
}
},
"Serilog": {
"type": "CentralTransitive",
"requested": "[3.0.1, )",
"resolved": "3.0.1",
"contentHash": "E4UmOQ++eNJax1laE+lws7E3zbhKgHsGJbO7ra0yE5smUh+5FfUPIKKBxM3MO1tK4sgpQke6/pLReDxIc/ggNw=="
}
}
}
}
+10 -3
View File
@@ -2,12 +2,18 @@
# and changes nothing. Found updates are read from the JSON report and printed. # and changes nothing. Found updates are read from the JSON report and printed.
# Renovate requires Node.js >= 24.11 # 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" } 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 and debug log of this run: reports/<timestamp>/
$report = Join-Path $reportDir "$(Get-Date -Format 'yyyy-MM-dd-HH-mm-ss-fff')-renovate-report.json" $outDir = Join-Path (Join-Path (Join-Path $PSScriptRoot '..') 'reports') (Get-Date -Format 'yyyy-MM-dd-HH-mm-ss-fff')
New-Item -ItemType Directory -Force -Path $reportDir | Out-Null $report = Join-Path $outDir 'renovate-report.json'
New-Item -ItemType Directory -Force -Path $outDir | Out-Null
Push-Location (Join-Path $PSScriptRoot '..') # repository root 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 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 Pop-Location
Write-Host "`nAvailable updates:" -ForegroundColor Cyan Write-Host "`nAvailable updates:" -ForegroundColor Cyan
@@ -21,3 +27,4 @@ foreach ($manager in $packageFiles.PSObject.Properties) {
} }
} }
} }
Write-Host "Report and debug log: $outDir"
+12 -3
View File
@@ -16,6 +16,9 @@ $ts = $now.ToString('yyyy-MM-dd-HH-mm-ss-fff') # for the branch name (no
$prTimestamp = $now.ToString('yyyy-MM-dd HH:mm:ss.fff') # for the PR title $prTimestamp = $now.ToString('yyyy-MM-dd HH:mm:ss.fff') # for the PR title
$gitUrl = $endpoint -replace '://', "://renovate:$token@" $gitUrl = $endpoint -replace '://', "://renovate:$token@"
$gitUrl = "$gitUrl/$repo.git" $gitUrl = "$gitUrl/$repo.git"
# Report and debug log of this run: reports/<timestamp>/
$outDir = Join-Path (Join-Path (Join-Path $PSScriptRoot '..') 'reports') $ts
New-Item -ItemType Directory -Force -Path $outDir | Out-Null
Push-Location (Join-Path $PSScriptRoot '..') # repository root Push-Location (Join-Path $PSScriptRoot '..') # repository root
# 1. Push the local state of main to Forgejo (without credential helper, the credentials are in the URL) # 1. Push the local state of main to Forgejo (without credential helper, the credentials are in the URL)
@@ -24,20 +27,26 @@ if ($LASTEXITCODE -ne 0) { Pop-Location; throw 'git push failed' }
# 2. Run Renovate. Branch prefix with timestamp => every run creates new branches + PRs. # 2. Run Renovate. Branch prefix with timestamp => every run creates new branches + PRs.
# branch-prefix-old prevents Renovate from reusing branches of previous runs. # branch-prefix-old prevents Renovate from reusing branches of previous runs.
# Via environment variables: the commit author and the timestamp in the PR title (commitMessageSuffix has no CLI flag). # Via environment variables: the commit author, the timestamp in the PR title (commitMessageSuffix has no CLI flag)
# and the debug log file (console output in the same format, but at debug level).
$env:RENOVATE_GIT_AUTHOR = 'Renovate Bot <renovate@localhost>' $env:RENOVATE_GIT_AUTHOR = 'Renovate Bot <renovate@localhost>'
$env:RENOVATE_COMMIT_MESSAGE_SUFFIX = $prTimestamp $env:RENOVATE_COMMIT_MESSAGE_SUFFIX = $prTimestamp
$env:LOG_FILE = Join-Path $outDir 'renovate.log'
$env:LOG_FILE_LEVEL = 'debug'
$env:LOG_FILE_FORMAT = 'pretty'
npx --yes renovate@44.149.3 ` npx --yes renovate@44.149.3 `
--platform=forgejo --endpoint="$endpoint/api/v1" --token=$token ` --platform=forgejo --endpoint="$endpoint/api/v1" --token=$token `
--branch-prefix="renovate/$ts-" --branch-prefix-old="renovate/$ts-" ` --branch-prefix="renovate/$ts-" --branch-prefix-old="renovate/$ts-" `
--report-type=file --report-path="$(Join-Path $outDir 'renovate-report.json')" `
$repo $repo
$renovateExitCode = $LASTEXITCODE $renovateExitCode = $LASTEXITCODE
Remove-Item Env:RENOVATE_GIT_AUTHOR, Env:RENOVATE_COMMIT_MESSAGE_SUFFIX Remove-Item Env:RENOVATE_GIT_AUTHOR, Env:RENOVATE_COMMIT_MESSAGE_SUFFIX, Env:LOG_FILE, Env:LOG_FILE_LEVEL, Env:LOG_FILE_FORMAT
if ($renovateExitCode -ne 0) { Pop-Location; throw 'Renovate failed' } if ($renovateExitCode -ne 0) { Pop-Location; throw "Renovate failed - see $outDir" }
# 3. Fetch the Renovate branches into the local repository (as forgejo/renovate/...) # 3. Fetch the Renovate branches into the local repository (as forgejo/renovate/...)
git -c credential.helper= fetch -q --prune $gitUrl '+refs/heads/renovate/*:refs/remotes/forgejo/renovate/*' git -c credential.helper= fetch -q --prune $gitUrl '+refs/heads/renovate/*:refs/remotes/forgejo/renovate/*'
Write-Host "`nNew branches:" -ForegroundColor Cyan Write-Host "`nNew branches:" -ForegroundColor Cyan
git branch -r --list "forgejo/renovate/$ts-*" git branch -r --list "forgejo/renovate/$ts-*"
Write-Host "PRs: $endpoint/$repo/pulls (login: renovate / renovate)" Write-Host "PRs: $endpoint/$repo/pulls (login: renovate / renovate)"
Write-Host "Report and debug log: $outDir"
Pop-Location Pop-Location