When calling create-package --destination target --version 0.0.1, it fails with
Paketo Buildpack for NPM Install 0.0.1
https://github.com/paketo-buildpacks/npm-install
Creating package in target
Pre-package with ./scripts/build.sh --target linux/amd64 --target linux/arm64
unable to execute pre-package script ./scripts/build.sh --target linux/amd64 --target linux/arm64
unable to start PTY
fork/exec ./scripts/build.sh --target linux/amd64 --target linux/arm64: no such file or directory
As far as I can tell, this problem was introduced with #806
Expected Behavior
A local package is created (as before) which can be used for local testing (calling pack buildpack package --target linux/arm64 afterwards)
Current Behavior
It will try to execute the file ./scripts/build.sh --target linux/amd64 --target linux/arm64. So no arguments are allowed to be set to metadata.pre-package.
Possible Solution
build.sh could be something simple like here and always create all architectures.
Steps to Reproduce
create-package --destination target --version 0.0.1
Motivations
Local packaging for testing.
When calling
create-package --destination target --version 0.0.1, it fails withAs far as I can tell, this problem was introduced with #806
Expected Behavior
A local package is created (as before) which can be used for local testing (calling
pack buildpack package --target linux/arm64afterwards)Current Behavior
It will try to execute the file
./scripts/build.sh --target linux/amd64 --target linux/arm64. So no arguments are allowed to be set tometadata.pre-package.Possible Solution
build.shcould be something simple like here and always create all architectures.Steps to Reproduce
create-package --destination target --version 0.0.1Motivations
Local packaging for testing.