Skip to content

Conversation

@stoned
Copy link
Contributor

@stoned stoned commented Jan 11, 2026

At the beginning of an expansion, a cache entry not holding a string does not necessarily mean the expansion can't be done, so avoid returning an error.

Add cases to test the caches in these situations.

As illustration, compare current version of vals' behavior with the proposed fix.

$ vals get 'ref+echo://foo/bar#/foo ref+echo://foo/bar'
expand echo://foo/bar: error reading string from cache: unsupported value type map[string]interface {}

vs

$ ./bin/vals get 'ref+echo://foo/bar#/foo ref+echo://foo/bar'; echo
bar foo/bar

At the beginning of an expansion, a cache entry *not* holding a string
does not necessarily mean the expansion can't be done, so avoid  returning
an error.

Add cases to test the caches in these situations.

Signed-off-by: Stoned Elipot <stoned.elipot@proton.me>
@yxxhero yxxhero merged commit e9f78ae into helmfile:main Jan 12, 2026
5 checks passed
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.

2 participants