Skip to content

Rust crates with regexmanager don't get updated #17439

Discussion options

You must be logged in to vote

I got somewhat stuck at this as well. I use a custom regexManager to update crates (not expressed in a Cargo.toml file but in a custom file format). Reading the README of the cargo versioning strategy helped me realize it rightfully treats versions according to the cargo spec:

In Cargo, 1.2.3 doesn't mean "exactly 1.2.3", it actually means >=1.2.3 <2.0.0. So this is like the equivalent of ^1.2.3 in npm.

Changing versioning to semver for the regex manager made it behave as I'd expect (treats versions as fixed):

{
  regexManagers: [
    {
      fileMatch: "package\\.yaml$",
      matchStrings: [
        "pkg:cargo\\/(?<depName>.+)@(?<currentValue>.+)"
      ],
      datasourceTemplate: "c…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@viceice
Comment options

@Gabriel-Ladzaretti
Comment options

@viceice
Comment options

@Gabriel-Ladzaretti
Comment options

Comment options

You must be logged in to vote
1 reply
@gillyobeast
Comment options

Answer selected by davidkna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants