Skip to content

Commit

Permalink
I have dded an ignore property under the matchPackageNames rule to di…
Browse files Browse the repository at this point in the history
…sable updates when the dependency is pinned to a specific commit or digest. The final rule ensures no updates are applied if the dependency's version source URL is a commit SHA.

Related to open-telemetry#6192
  • Loading branch information
Victorsesan committed Oct 10, 2024
1 parent 1c6d9f9 commit 6669a57
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"extends": ["config:recommended"],
"ignorePaths": [],
"ignoreDeps": [ "go.opentelemetry.io/contrib/instrgen" ],
"ignoreDeps": ["go.opentelemetry.io/contrib/instrgen"],
"labels": ["Skip Changelog", "dependencies"],
"separateMajorMinor": true,
"postUpdateOptions" : [
"gomodTidy"
],
"postUpdateOptions": ["gomodTidy"],
"packageRules": [
{
"matchManagers": ["gomod"],
Expand All @@ -28,7 +24,16 @@
},
{
"matchPackageNames": ["go.opentelemetry.io/otel/**"],
"allowedVersions": "/^v[0-9]+\\.[0-9]+\\.[0-9]+/"
"allowedVersions": "^v[0-9]+\\.[0-9]+\\.[0-9]+",
"enabled": true,
"ignore": {
"matchUpdateTypes": ["pin", "digest"]
}
},
{
"matchPackageNames": ["go.opentelemetry.io/otel/**"],
"sourceUrlPrefixes": ["https://github.com/open-telemetry/opentelemetry-go"],
"enabled": false
}
]
}

0 comments on commit 6669a57

Please sign in to comment.