mirror of https://github.com/helm/helm
Configuration embeds sync.Mutex and logging.LogHolder (atomic.Pointer), so a value copy (*i.cfg) fails govet copylocks under golangci-lint. Build a local Configuration by copying fields explicitly and reattaching the logger via SetLogger instead. Signed-off-by: Dean Chen <862469039@qq.com>pull/32431/head
parent
4458a191b3
commit
8ac25c5c8d
Loading…
Reference in new issue