Skip to content

Fixme: SA1019: httputil.NewClientConn is deprecated #39926

@thaJeztah

Description

@thaJeztah

Tracking issue for some remaining linting issues to be fixed after #39668 is merged.

client/hijack.go:85:16:                               SA1019: httputil.NewClientConn is deprecated: Use the Client or Transport in package net/http instead.  (staticcheck)
integration-cli/docker_api_attach_test.go:245:12:     SA1019: httputil.NewClientConn is deprecated: Use the Client or Transport in package net/http instead.  (staticcheck)
integration/plugin/authz/authz_plugin_test.go:180:7:  SA1019: httputil.NewClientConn is deprecated: Use the Client or Transport in package net/http instead.  (staticcheck)
integration/plugin/authz/authz_plugin_test.go:479:12: SA1019: httputil.NewClientConn is deprecated: Use the Client or Transport in package net/http instead.  (staticcheck)

These warnings are currently suppressed in hack/validate/golangci-lint.yml (after #39668 is merged), so when this is fixed, those lines should be removed

Metadata

Metadata

Assignees

No one assigned

    Labels

    exp/intermediatekind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions