Fix Renovate configuration to detect dependencies in all subdirectories#113
Fix Renovate configuration to detect dependencies in all subdirectories#113
Conversation
Co-authored-by: commjoen <1457214+commjoen@users.noreply.github.com>
|
@copilot you should be able to reach the renovate documentation now. Can you check whether the config is correct now? |
Co-authored-by: commjoen <1457214+commjoen@users.noreply.github.com>
Yes, I've reviewed the Renovate documentation and updated the configuration. The config is now correct and uses the modern format. Key findings:
According to Renovate docs, the old Commit: Updated in commit d0c8a8c Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot firewall is open now to the domains, can you try again? Note that |
Co-authored-by: commjoen <1457214+commjoen@users.noreply.github.com>
I've fixed the workflow failure. The issue was that the workflow was using Node.js 20, but Renovate 41.x requires Node.js 22+. Updated the workflow to use Node.js 22, which should resolve the validation error. Changes in commit: 2f4e3a1 |
✅ Renovate Configuration Fix Complete
Fixed Renovate to detect all dependency files in the repository by adding explicit file patterns.
Changes Made
managerFilePatternsinstead of deprecatedfileMatch/(^|/)rust/Cargo\.toml$/→ detectsrust/Cargo.toml/(^|/)golang/go\\.mod$/→ detectsgolang/go.mod/(^|/)dotnet/.+\\.csproj$/and/(^|/)wrongsecrets-binaries\\.sln$/→ detects .csproj and .sln files/(^|/)swift/Package\\.swift$/→ detectsswift/Package.swiftrenovate-config-validator.yml)Key Updates
Modern Configuration Format: Changed from
fileMatch(deprecated) tomanagerFilePatternsbased on Renovate documentationNode.js Version Fix: Updated workflow from Node.js 20 to Node.js 22 to meet Renovate's engine requirements
Why This Was Needed
Renovate by default only looks for dependency files in standard locations (repository root). Since this project organizes files in subdirectories like
rust/,golang/,dotnet/dotnetproject/, andswift/, explicit patterns were required to tell Renovate where to find each dependency file.Validation Results
✅ All dependency files matched correctly:
rust/Cargo.toml→ cargogolang/go.mod→ gomoddotnet/dotnetproject/dotnetproject.csproj→ nugetwrongsecrets-binaries.sln→ nugetswift/Package.swift→ swift✅ JSON syntax valid
✅ Workflow YAML valid
✅ All patterns tested and working
✅ Using modern managerFilePatterns format
✅ Workflow updated for Node.js 22 compatibility
What Happens Next
After merge, Renovate will:
The validation workflow ensures future renovate.json changes are valid.
Original prompt
Fixes #112
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.