Skip to content

Commit

Permalink
Add deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh committed Feb 14, 2022
1 parent 1cf2572 commit 5f2a418
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/v1/tarball/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ func LayerFromOpener(opener Opener, opts ...LayerOption) (v1.Layer, error) {
// LayerFromReader returns a v1.Layer given a io.Reader.
//
// The reader's contents are read and buffered to a temp file in the process.
//
// Deprecated: Use LayerFromOpener or stream.NewLayer instead, if possible.
func LayerFromReader(reader io.Reader, opts ...LayerOption) (v1.Layer, error) {
tmp, err := ioutil.TempFile("", "")
if err != nil {
Expand Down

0 comments on commit 5f2a418

Please sign in to comment.