Skip to content

fix: align index loading with upstream Helm v4 - #2120

Merged
stefanprodan merged 1 commit into
mainfrom
index-loading-helmv4
Aug 4, 2026
Merged

fix: align index loading with upstream Helm v4#2120
stefanprodan merged 1 commit into
mainfrom
index-loading-helmv4

Conversation

@stefanprodan

Copy link
Copy Markdown
Member

Remove empty entries from the versions list in IndexFromBytes the same way Helm's loadIndex does. As defense in depth, recover panics in the DependencyManager build as errors and log the invalid entries.

@stefanprodan stefanprodan added bug Something isn't working area/helm Helm related issues and pull requests backport:release/v1.9.x To be backported to release/v1.9.x labels Aug 4, 2026
sem := semaphore.NewWeighted(current)
c := &chartWithLock{Chart: c}
for name, dep := range deps {
name, dep := name, dep

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Since Go 1.22 iteration gets a fresh copy of the loop variables. At some point we'll need to do a sweep of all Flux source code and simplify.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan
stefanprodan force-pushed the index-loading-helmv4 branch from e8b256e to ded4718 Compare August 4, 2026 17:02
@stefanprodan
stefanprodan merged commit bb7ab13 into main Aug 4, 2026
6 checks passed
@stefanprodan
stefanprodan deleted the index-loading-helmv4 branch August 4, 2026 17:37
@fluxcdbot

Copy link
Copy Markdown
Member

Successfully created backport PR for release/v1.9.x:

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

Labels

area/helm Helm related issues and pull requests backport:release/v1.9.x To be backported to release/v1.9.x bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants