-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: replacement support for more autoreplace managers #17476
Changes from 16 commits
6870bb1
a5d8ef1
0020880
9b2b1e1
5147a67
b2593a6
2b7f3b6
1db3dba
06ac403
4462b12
0990ff8
f880b15
ce15c88
c009df7
3c0274e
31135a6
9dc5d5e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -433,7 +433,8 @@ function getDigestConfig( | |
config: GetDigestInputConfig | ||
): DigestConfig { | ||
const { currentValue, currentDigest } = config; | ||
const packageName = config.packageName ?? config.depName; | ||
const packageName = | ||
config.replacementName ?? config.packageName ?? config.depName; | ||
Comment on lines
+436
to
+437
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this "packageName" is used to look up digests. After this change it is able to replace images with digests, as now the correct digest for the replacement is used. Without this the depName would be replaced, but the old digest would be used as the old name would be used in lookUp |
||
const [registryUrl] = resolveRegistryUrls( | ||
datasource, | ||
config.defaultRegistryUrls, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this I had the problem that my newName, newValue and finally depName changed from one string to an array of single characters.