zarf
zarf copied to clipboard
Helm tool ignores errors
Environment
Device and OS: N/A App version: v0.33.0 Kubernetes distro being used: N/A Other: N/A
Steps to reproduce
- Create a file called
config.json
with invalid json content - Export the registry config path
HELM_REGISTRY_CONFIG=config.json
- 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.