paketo-buildpacks / libpak

An opinionated extension to the libcnb Cloud Native Buildpack Library
Apache License 2.0
15 stars 17 forks source link

create-package should support multi arch buildpacks #321

Open anthonydahanne opened 5 months ago

anthonydahanne commented 5 months ago

create-package should support multi arch buildpacks

it should understand the targets entries in buildpack.toml

and then be able to only copy from linux/a(md|rm)64/bin to bin

Possible Solution

after calling pre package, move the proper files under bin/

Motivation

support occam testing fwk that calls pre-package this way:

https://github.com/paketo-buildpacks/occam/blob/main/packagers/libpak.go#L19

which is in turn used this way:

    libpakBuildpackStore := occam.NewBuildpackStore().WithPackager(packagers.NewLibpak())
    watchexecBuildpack, err = libpakBuildpackStore.Get.
        Execute("github.com/paketo-buildpacks/watchexec")