mirror of https://github.com/helm/helm
Move the //go:build !windows constraint in http_installer_test.go above the license header so gofmt accepts the file ordering. Use the promoted i.PluginsDirectory field in OCIInstaller.Path() instead of the explicit i.base.PluginsDirectory selector, satisfying staticcheck QF1008. While here, harden newBase() to skip empty HELM_PLUGINS segments (e.g. ':/path' or '/path:') so installation never targets a relative path, and add TestPathSkipsEmptyPluginDirs to cover it. Signed-off-by: Arnav Nagzirkar <113314200+arnavnagzirkar@users.noreply.github.com>pull/32242/head
parent
a085bab5a5
commit
ba536ec18e
Loading…
Reference in new issue