From d4d179c7857b2847e5b849b427817318f837becb Mon Sep 17 00:00:00 2001 From: Johannes Dillmann Date: Tue, 16 Aug 2022 09:38:15 +0200 Subject: [PATCH] Replace deprecated crush usages --- tomee/base.go | 2 +- tomee/home.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tomee/base.go b/tomee/base.go index c351aaf..179c1f9 100644 --- a/tomee/base.go +++ b/tomee/base.go @@ -288,7 +288,7 @@ func (b Base) ContributeExternalConfiguration(layer libcnb.Layer) error { } } - if err := crush.ExtractTarGz(artifact, layer.Path, c); err != nil { + if err := crush.Extract(artifact, layer.Path, c); err != nil { return fmt.Errorf("unable to expand external configuration\n%w", err) } diff --git a/tomee/home.go b/tomee/home.go index 440b0f4..daa44aa 100644 --- a/tomee/home.go +++ b/tomee/home.go @@ -43,7 +43,7 @@ func (h Home) Contribute(layer libcnb.Layer) (libcnb.Layer, error) { return h.LayerContributor.Contribute(layer, func(artifact *os.File) (libcnb.Layer, error) { h.Logger.Bodyf("Expanding to %s", layer.Path) - if err := crush.ExtractTarGz(artifact, layer.Path, 1); err != nil { + if err := crush.Extract(artifact, layer.Path, 1); err != nil { return libcnb.Layer{}, fmt.Errorf("unable to expand Tomcat\n%w", err) }