Closed paisleyrob closed 4 years ago
You need to take a look at the regex
version scheme. Look under versionScheme
in the docs for an example and also there are some examples in the closed issues in this repo. Would be great if you can post your config once you get it working.
@rarkins, so the loose
/ semver
versions have no chance of working? I guess that gives me a target. I assumed I was doing something obviously wrong.
Is there a way to tell what versions it's comparing against? Even TRACE
level logging doesn't seem to show me what it thinks is available.
The versions don’t comply with SemVer so definitely not that. Loose does its best to sort either numerically or alphabetically so has a chance. What’s the “packageFiles with updates” debug log message say about this dependency?
@rarkins That line is already included in the line above.
Whatever I was doing to change the configuration before wasn't working, but now it is and it REALLY doesn't like my regex result:
INFO: Renovate is exiting with a non-zero code due to the following logged errors
"loggerErrors": [
{
"name": "renovate",
"level": 50,
"repository": "docker/rhel-iso",
"err": {
"message": "Invalid Version: 7.6.151-.1550575774",
"stack": "TypeError: Invalid Version: 7.6.151-.1550575774\n at new SemVer (/usr/src/app/node_modules/semver/semver.js:332:11)\n at Function.compare (/usr/src/app/node_modules/semver/semver.js:647:39)\n at RegExpVersioningApi._compare (/usr/src/app/dist/versioning/regex/index.js:46:25)\n at RegExpVersioningApi.sortVersions (/usr/src/app/dist/versioning/loose/generic.js:144:21)\n at sortReleases (/usr/src/app/dist/datasource/index.js:103:24)\n at Array.sort (native)\n at Object.getPkgReleases (/usr/src/app/dist/datasource/index.js:108:14)"
},
"msg": "Repository has unknown error"
}
]
The version it's whining about is: 7.6-151.1550575774
so I've got an issue with my regular expression, which often happens when you decide regular expressions are the solution... :stuck_out_tongue:
Evidently I was originally adding the configuration to the onboardingConfig
, loose
works for my purposes. Thanks for your help @rarkins!
Looks like a mismatch in names. You need to use the full domain + name in the package rule if that’s what’s in the dockerfile
Which Renovate are you using? x the right box:
Which platform are you using? x the right box:
Have you checked the logs? Don't forget to include them if relevant
I'm replacing our custom domain name with
example.com
for paranoia reasons.What would you like to do?
Recently there was a RHEL release
7.7-384.1575996163
, we append a-N
where N is the number of the release related to the appropriate upstream version number. I'm guessing this is screwing up the version update. We've got a rhel-iso which adds the ISO creation ability of the base RHEL image. Our current rhel-iso is based from:7.7-310-1
. Our local RHEL release is7.7-384.1576996163-1
similar to the RHEL release.I've tried various versions of:
With
loose
, andsemver
. I've even trieddocker.example.com/docker/rhel
as thepackageNames
entry to no vail. I'd be shocked if I wasn't screwing up the configuration, but I can't seem to make it work.