Skip to content

fix(datasource/helm): correctly determine latest release#44255

Open
jamietanna wants to merge 1 commit into
mainfrom
fix/helm-latest
Open

fix(datasource/helm): correctly determine latest release#44255
jamietanna wants to merge 1 commit into
mainfrom
fix/helm-latest

Conversation

@jamietanna

Copy link
Copy Markdown
Contributor

Changes

As noted in #43929, in the case where Sonatype Repository Manager is
used, the releases are returned in ascending, not descending, order.

We can correctly determine the latest release by using the helm
versioning scheme.

Context

Please select one of the below:

  • This closes an existing Issue: Closes #
  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

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

The public repository:

As noted in #43929, in the case where Sonatype Repository Manager is
used, the releases are returned in ascending, not descending, order.

We can correctly determine the latest release by using the `helm`
versioning scheme.

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
@jamietanna jamietanna marked this pull request as ready for review June 26, 2026 13:24
@github-actions github-actions Bot requested a review from viceice June 26, 2026 13:24
import { regEx } from '../../../util/regex.ts';
import { LooseRecord } from '../../../util/schema-utils/index.ts';
import { MaybeTimestamp } from '../../../util/timestamp.ts';
import { api as helmVersioning } from '../../versioning/helm/index.ts';

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell, we have to use this here (instead of being able to determine it automagically / i.e. to allow packageRules to override the versioning)

@jamietanna jamietanna enabled auto-merge June 26, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant