File tree Expand file tree Collapse file tree 3 files changed +27
-10
lines changed Expand file tree Collapse file tree 3 files changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -117,9 +117,9 @@ func validateManifest(r io.Reader) error {
117117 if layer .MediaType != string (v1 .MediaTypeImageLayer ) &&
118118 layer .MediaType != string (v1 .MediaTypeImageLayerGzip ) &&
119119 layer .MediaType != string (v1 .MediaTypeImageLayerZstd ) &&
120- layer .MediaType != string (v1 .MediaTypeImageLayerNonDistributable ) &&
121- layer .MediaType != string (v1 .MediaTypeImageLayerNonDistributableGzip ) &&
122- layer .MediaType != string (v1 .MediaTypeImageLayerNonDistributableZstd ) {
120+ layer .MediaType != string (v1 .MediaTypeImageLayerNonDistributable ) && //nolint:staticcheck
121+ layer .MediaType != string (v1 .MediaTypeImageLayerNonDistributableGzip ) && //nolint:staticcheck
122+ layer .MediaType != string (v1 .MediaTypeImageLayerNonDistributableZstd ) { //nolint:staticcheck
123123 fmt .Printf ("warning: layer %s has an unknown media type: %s\n " , layer .Digest , layer .MediaType )
124124 }
125125 }
Original file line number Diff line number Diff line change @@ -49,13 +49,15 @@ type ImageConfig struct {
4949 // StopSignal contains the system call signal that will be sent to the container to exit.
5050 StopSignal string `json:"StopSignal,omitempty"`
5151
52- // ArgsEscaped `[Deprecated]` - This field is present only for legacy
53- // compatibility with Docker and should not be used by new image builders.
54- // It is used by Docker for Windows images to indicate that the `Entrypoint`
55- // or `Cmd` or both, contains only a single element array, that is a
56- // pre-escaped, and combined into a single string `CommandLine`. If `true`
57- // the value in `Entrypoint` or `Cmd` should be used as-is to avoid double
58- // escaping.
52+ // ArgsEscaped
53+ //
54+ // Deprecated: This field is present only for legacy compatibility with
55+ // Docker and should not be used by new image builders. It is used by Docker
56+ // for Windows images to indicate that the `Entrypoint` or `Cmd` or both,
57+ // contains only a single element array, that is a pre-escaped, and combined
58+ // into a single string `CommandLine`. If `true` the value in `Entrypoint` or
59+ // `Cmd` should be used as-is to avoid double escaping.
60+ // https://github.com/opencontainers/image-spec/pull/892
5961 ArgsEscaped bool `json:"ArgsEscaped,omitempty"`
6062}
6163
Original file line number Diff line number Diff line change @@ -40,16 +40,31 @@ const (
4040
4141 // MediaTypeImageLayerNonDistributable is the media type for layers referenced by
4242 // the manifest but with distribution restrictions.
43+ //
44+ // Deprecated: Non-distributable layers are deprecated, and not recommended
45+ // for future use. Implementations SHOULD NOT produce new non-distributable
46+ // layers.
47+ // https://github.com/opencontainers/image-spec/pull/965
4348 MediaTypeImageLayerNonDistributable = "application/vnd.oci.image.layer.nondistributable.v1.tar"
4449
4550 // MediaTypeImageLayerNonDistributableGzip is the media type for
4651 // gzipped layers referenced by the manifest but with distribution
4752 // restrictions.
53+ //
54+ // Deprecated: Non-distributable layers are deprecated, and not recommended
55+ // for future use. Implementations SHOULD NOT produce new non-distributable
56+ // layers.
57+ // https://github.com/opencontainers/image-spec/pull/965
4858 MediaTypeImageLayerNonDistributableGzip = "application/vnd.oci.image.layer.nondistributable.v1.tar+gzip"
4959
5060 // MediaTypeImageLayerNonDistributableZstd is the media type for zstd
5161 // compressed layers referenced by the manifest but with distribution
5262 // restrictions.
63+ //
64+ // Deprecated: Non-distributable layers are deprecated, and not recommended
65+ // for future use. Implementations SHOULD NOT produce new non-distributable
66+ // layers.
67+ // https://github.com/opencontainers/image-spec/pull/965
5368 MediaTypeImageLayerNonDistributableZstd = "application/vnd.oci.image.layer.nondistributable.v1.tar+zstd"
5469
5570 // MediaTypeImageConfig specifies the media type for the image configuration.
You can’t perform that action at this time.
0 commit comments