From 57af6160c212c2f08af7f5868f14d1d2a8c8cb13 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Sun, 10 Mar 2019 08:24:21 +0100 Subject: [PATCH] fix(package-rules): check lockedVersion against matchCurrentVersion --- lib/util/package-rules.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util/package-rules.js b/lib/util/package-rules.js index 981a2dfc54..979526bed8 100644 --- a/lib/util/package-rules.js +++ b/lib/util/package-rules.js @@ -17,6 +17,7 @@ function applyPackageRules(inputConfig) { depName, currentValue, fromVersion, + lockedVersion, updateType, isBump, sourceUrl, @@ -144,7 +145,7 @@ function applyPackageRules(inputConfig) { const { matches, isVersion } = versioning.get(versionScheme); const compareVersion = isVersion(currentValue) ? currentValue // it's a version so we can match against it - : fromVersion; // need to match against this fromVersion, if available + : lockedVersion || fromVersion; // need to match against this fromVersion, if available if (compareVersion) { const isMatch = matches(compareVersion, matchCurrentVersion); positiveMatch = positiveMatch || isMatch; -- GitLab