zarf icon indicating copy to clipboard operation
zarf copied to clipboard

Helm tool ignores errors

Open phillebaba opened this issue 7 months ago • 0 comments

Environment

Device and OS: N/A App version: v0.33.0 Kubernetes distro being used: N/A Other: N/A

Steps to reproduce

  1. Create a file called config.json with invalid json content
  2. Export the registry config path HELM_REGISTRY_CONFIG=config.json
  3. Run zarf --version

Expected result

The Zarf version should be printed.

Actual Result

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x3d61d4a]

goroutine 1 [running]:
github.com/zarf-dev/zarf/src/cmd/tools.init.2()
	/home/philip/go/src/github.com/zarf-dev/zarf/src/cmd/tools/helm.go:30 +0xea

Visual Proof (screenshots, videos, text, etc)

Severity/Priority

Medium

Additional Context

Add any other context or screenshots about the technical debt here.

phillebaba avatar Jul 23 '24 20:07 phillebaba