Rust crates with regexmanager don't get updated #17439
-
Sample repository: https://github.com/davidkna/renovate-cargo-install The following renovate config doesn't seem to update the binary crates that get installed in the workflow file ( {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"regexManagers": [{
"fileMatch": ["^(workflow-templates|\\.github\\/workflows)\\/[^/]+\\.ya?ml$"],
"matchStrings": ["cargo install.*--version (?<currentValue>\\S+).*\\s(?<depName>\\S+)"],
"datasourceTemplate": "crate"
}]
} Partial log output:
Is this a bug in renovate, or is there something wrong with my config? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I've debugged this, and it seems that all valid release updates are being filtered out as there is no renovate/lib/workers/repository/process/lookup/index.ts Lines 266 to 268 in dafda2e ... renovate/lib/workers/repository/process/lookup/index.ts Lines 300 to 303 in dafda2e @viceice WDYT? |
Beta Was this translation helpful? Give feedback.
-
I got somewhat stuck at this as well. I use a custom
Changing {
regexManagers: [
{
fileMatch: "package\\.yaml$",
matchStrings: [
"pkg:cargo\\/(?<depName>.+)@(?<currentValue>.+)"
],
datasourceTemplate: "crate",
// In cargo versioning, "1.2.3" doesn't mean "exactly 1.2.3" but rather ">=1.2.3 <2.0.0".
// We on the other hand do want to treat versions as fixed - so we change versioning strategy.
versioningTemplate: "semver",
},
]
} |
Beta Was this translation helpful? Give feedback.
I got somewhat stuck at this as well. I use a custom
regexManager
to update crates (not expressed in aCargo.toml
file but in a custom file format). Reading the README of thecargo
versioning strategy helped me realize it rightfully treats versions according to the cargo spec:Changing
versioning
tosemver
for the regex manager made it behave as I'd expect (treats versions as fixed):