Skip to content

Commit

Permalink
Replace deprecated crush usages
Browse files Browse the repository at this point in the history
  • Loading branch information
modulo11 committed Aug 16, 2022
1 parent 04595e3 commit d4d179c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tomee/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion tomee/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit d4d179c

Please sign in to comment.