Skip to content

fix: prevent reporting fallback on version when none specified#31549

Merged
gjenkins8 merged 1 commit into
helm:mainfrom
benoittgt:31548
Dec 8, 2025
Merged

fix: prevent reporting fallback on version when none specified#31549
gjenkins8 merged 1 commit into
helm:mainfrom
benoittgt:31548

Conversation

@benoittgt

@benoittgt benoittgt commented Nov 20, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

I inserted a regression via #31254.

Fixes: #31548

Special notes for your reviewer:

Tested via

❯ helm pull rancher/longhorn-crd --version 106.2.0+up1.8.2 --destination /tmp/

level=WARN msg="unable to find exact version; falling back to closest available version" chart=longhorn-crd requested=106.2.0+up1.8.2 selected=106.2.0+up1.8.1

❯ bin/helm show chart brigade/brigade

apiVersion: v1
appVersion: v1.5.0
dependencies:
- condition: kashti.enabled
  name: kashti
  repository: https://brigadecore.github.io/charts
  version: 0.7.0
- condition: brigade-github-app.enabled
  name: brigade-github-app
  repository: https://brigadecore.github.io/charts
  version: 0.8.0
- alias: gw
  condition: gw.enabled
  name: brigade-github-oauth
  repository: https://brigadecore.github.io/charts
  version: 0.4.0
description: Brigade provides event-driven scripting of Kubernetes pipelines.
name: brigade
version: 1.10.0

If applicable:

  • this PR contains user facing changes (the docs needed label should be applied if so)
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Fixes: helm#31548

```
❯ helm pull rancher/longhorn-crd --version 106.2.0+up1.8.2 --destination /tmp/

level=WARN msg="unable to find exact version; falling back to closest available version" chart=longhorn-crd requested=106.2.0+up1.8.2 selected=106.2.0+up1.8.1

❯ bin/helm show chart brigade/brigade

apiVersion: v1
appVersion: v1.5.0
dependencies:
- condition: kashti.enabled
  name: kashti
  repository: https://brigadecore.github.io/charts
  version: 0.7.0
- condition: brigade-github-app.enabled
  name: brigade-github-app
  repository: https://brigadecore.github.io/charts
  version: 0.8.0
- alias: gw
  condition: gw.enabled
  name: brigade-github-oauth
  repository: https://brigadecore.github.io/charts
  version: 0.4.0
description: Brigade provides event-driven scripting of Kubernetes pipelines.
name: brigade
version: 1.10.0
```

Signed-off-by: Benoit Tigeot <[email protected]>
@pull-request-size pull-request-size Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 20, 2025
@benoittgt
benoittgt marked this pull request as ready for review November 20, 2025 19:54

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@benoittgt

Copy link
Copy Markdown
Contributor Author

I think we should merge this for 4.0.2 (cc @mattfarina @gjenkins8)

@gjenkins8 gjenkins8 added this to the 4.0.2 milestone Dec 8, 2025
@gjenkins8
gjenkins8 merged commit 7edfdb6 into helm:main Dec 8, 2025
5 checks passed
@benoittgt
benoittgt deleted the 31548 branch December 8, 2025 16:50
@mattfarina mattfarina added the picked Indicates that a PR has been cherry-picked into the next release candidate. label Dec 10, 2025
@TheMeier

Copy link
Copy Markdown

This change leads to new warnings when using non-semver version e.g. partial versions using the caret-syntax

@benoittgt

benoittgt commented Jan 23, 2026

Copy link
Copy Markdown
Contributor Author

This change leads to new warnings when using non-semver version e.g. partial versions using the caret-syntax

I will take a look.

Edit: #31758

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

picked Indicates that a PR has been cherry-picked into the next release candidate. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helm 4: Emits "unable to find exact version" even when no version was specified

5 participants