Skip to content

Commit

Permalink
! update extract dir to bin of buildpack template
Browse files Browse the repository at this point in the history
  • Loading branch information
lispking committed Jan 27, 2024
1 parent 04101fd commit 8765f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/templates/buildpack/packer/packer.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (r {{ packer_name | capitalize }}) Contribute(layer libcnb.Layer) (libcnb.L

// TODO: May be use copy instead of it or update Extract Path or stripComponents=1
r.Logger.Bodyf("Expanding %s to %s", artifact.Name(), bin)
if err := crush.Extract(artifact, layer.Path, 1); err != nil {
if err := crush.Extract(artifact, bin, 1); err != nil {
return libcnb.Layer{}, fmt.Errorf("unable to expand %s\n%w", artifact.Name(), err)
}

Expand Down

0 comments on commit 8765f9f

Please sign in to comment.