Skip to content
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

fix: Correct digest resolution when the replacementName and replacementVersion options are defined #29164

Merged

Conversation

ssegato81
Copy link
Contributor

Changes

The lookupName and currentDigest values are set as undefined when a replacementName update is running because the new image may differ from the original one.
Added new test case that validates the correct getDigest function call

Context

Discussion #27728
Closes #20304

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

ssegato81 and others added 4 commits May 16, 2024 15:54
* Tries to get the digest for the artifact specified in the replacementName option instead of the lookupName because
the new artifact might be a different one to the original one
* Sets the current digest on undifined when iterates over a replacement because the new image might be different to the original
and the getDigest function use it with the replacementName option.
@rarkins rarkins added the auto:reproduction A minimal reproduction is necessary to proceed label May 20, 2024

This comment was marked as resolved.

@rarkins

This comment was marked as resolved.

@ssegato81

This comment was marked as resolved.

@viceice viceice self-requested a review May 22, 2024 13:13
viceice
viceice previously approved these changes May 22, 2024
@viceice viceice requested a review from rarkins May 22, 2024 14:20
@rarkins rarkins added this pull request to the merge queue May 22, 2024
Merged via the queue into renovatebot:main with commit c0089d6 May 22, 2024
37 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.374.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto:reproduction A minimal reproduction is necessary to proceed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docker: Replacement causes existing dependencies to use wrong digest
4 participants