From 35ad836eda5817d1ab663d4456fcf5691233c925 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Thu, 29 Jul 2021 14:21:26 -0400 Subject: [PATCH] Document that static layer contents aren't compressed --- pkg/v1/static/layer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/v1/static/layer.go b/pkg/v1/static/layer.go index 32709f4d2..0ba4794ff 100644 --- a/pkg/v1/static/layer.go +++ b/pkg/v1/static/layer.go @@ -25,6 +25,8 @@ import ( ) // NewLayer returns a layer containing the given bytes, with the given mediaType. +// +// Contents will not be compressed. func NewLayer(b []byte, mt types.MediaType) v1.Layer { return &staticLayer{b: b, mt: mt} }