helm/internal
Philipp Born e3829ebbbb
fix(copystructure): handle nil elements in slice copying
When copying slices containing nil interface{} elements, the copyValue
function would panic with 'reflect: call of reflect.Value.Set on zero
Value'. This occurred because reflect.ValueOf(nil) returns a zero Value
that cannot be set.

This issue was introduced in v4.1.0 when replacing mitchellh/copystructure
with an internal implementation. The fix mirrors the existing nil handling
logic used for map values.

Fixes helm template panic when processing charts with YAML like:
  extraArgs:
    -

Added test case to verify slice elements with nil values are properly
handled during deep copy operations.

Signed-off-by: Philipp Born <git@pborn.eu>
2026-01-22 18:28:05 +01:00
..
chart/v3 build: set kube version via debug.BuildInfo 2025-12-19 21:13:47 -08:00
cli/output Moved release objects to enable versioning 2025-10-10 11:49:08 -04:00
copystructure fix(copystructure): handle nil elements in slice copying 2026-01-22 18:28:05 +01:00
fileutil improve fileutil test coverage 2025-09-12 20:46:28 +02:00
logging chore: increase logging package test coverage 2025-10-30 21:08:08 +00:00
monocular chore: enable usestdlibvars linter 2025-04-27 22:44:46 +02:00
plugin Merge pull request #31613 from aslafy-z/feat/getter-env 2026-01-07 07:41:31 -07:00
resolver Move repo package to versioned directory 2025-09-02 10:19:48 -04:00
statusreaders fix: add default casess to switch statements 2025-12-21 09:13:24 -07:00
sympath chore: fix some comment format 2025-10-15 11:19:41 +08:00
test chore: enable usetesting linter 2025-05-30 08:12:11 +02:00
third_party Updating to tested content cache 2025-08-21 14:33:51 -04:00
tlsutil for all other similar cases 2025-11-04 11:33:42 +08:00
urlutil Add unit test case 2020-06-12 15:18:02 +08:00
version build: set kube version via debug.BuildInfo 2025-12-19 21:13:47 -08:00