mirror of https://github.com/helm/helm
Since commit eb93c684d40d ("crypto/tls: select only compatible chains from Certificates") has deprecated BuildNameToCertificate, just leave NameToCertificate nil. ``` ➜ helm git:(master) ✗ go version go version go1.14.6 linux/amd64 ➜ helm git:(master) make test GO111MODULE=on go build -tags '' -ldflags '-w -s -X helm.sh/helm/v3/internal/version.metadata=unreleased -X helm.sh/helm/v3/internal/version.gitCommit=94438b67221d4af3c9993945a42275be7ffc6baa -X helm.sh/helm/v3/internal/version.gitTreeState=clean' -o '/data/workspace/helm/bin'/helm ./cmd/helm GO111MODULE=on golangci-lint run pkg/repo/repotest/server.go:162:2: SA1019: tlsConf.BuildNameToCertificate is deprecated: NameToCertificate only allows associating a single certificate with a given name. Leave that field nil to let the library select the first compatible chain from Certificates. (staticcheck) tlsConf.BuildNameToCertificate() ^ pkg/getter/httpgetter.go:102:3: SA1019: tlsConf.BuildNameToCertificate is deprecated: NameToCertificate only allows associating a single certificate with a given name. Leave that field nil to let the library select the first compatible chain from Certificates. (staticcheck) tlsConf.BuildNameToCertificate() ^ pkg/getter/httpgetter_test.go:190:2: SA1019: tlsConf.BuildNameToCertificate is deprecated: NameToCertificate only allows associating a single certificate with a given name. Leave that field nil to let the library select the first compatible chain from Certificates. (staticcheck) tlsConf.BuildNameToCertificate() ^ make: *** [Makefile:92: test-style] Error 1 ``` Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>pull/8535/head
parent
94438b6722
commit
c02c3c0c3c
Loading…
Reference in new issue