mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-01 18:19:51 +00:00
325dc6407d
* fix(datasource/aws-machine-image): return all AMI releases for minimumReleaseAge filtering Previously, _getReleases only returned the latest image in the releases array, which broke minimumReleaseAge filtering. When the latest AMI was too new, there were no older candidates to fall back to. Fixed by: - _getReleases now returns all matching AMIs as separate releases (sorted oldest→newest) - _getDigest simplified to read directly from the images array to ensure latest digest is still returned - Added reproducer test verifying all 3 images are returned This aligns with how other datasources (npm, PyPI, etc.) work — they return complete version history to allow minimumReleaseAge filtering to find an appropriately-aged candidate. Co-authored-by: Claude Code <claude@anthropic.com> * chore: apply suggestion * fixup! chore: apply suggestion --------- Co-authored-by: Claude Code <claude@anthropic.com>