diff --git a/.golangci.yml b/.golangci.yml index eb58d4fe1a..3a869e7d18 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -304,7 +304,7 @@ linters: - staticcheck # FIXME(thaJeztah): ignoring these transitional utilities until BuildKit is vendored with https://github.com/moby/moby/pull/49743 - - text: "SA1019: idtools\\.(ToUserIdentityMapping|FromUserIdentityMapping) is deprecated" + - text: "SA1019: idtools\\.(ToUserIdentityMapping|FromUserIdentityMapping|IdentityMapping) is deprecated" linters: - staticcheck diff --git a/pkg/idtools/idtools.go b/pkg/idtools/idtools.go index 23e90c22b3..982f81d4f2 100644 --- a/pkg/idtools/idtools.go +++ b/pkg/idtools/idtools.go @@ -108,12 +108,16 @@ type Identity struct { } // Chown changes the numeric uid and gid of the named file to id.UID and id.GID. +// +// Deprecated: this method is deprecated and will be removed in the next release. func (id Identity) Chown(name string) error { return os.Chown(name, id.UID, id.GID) } // IdentityMapping contains a mappings of UIDs and GIDs. // The zero value represents an empty mapping. +// +// Deprecated: this type is deprecated and will be removed in the next release. type IdentityMapping struct { UIDMaps []IDMap `json:"UIDMaps"` GIDMaps []IDMap `json:"GIDMaps"`