Skip to content

Local create-package broken by multiarch #856

@c0d1ngm0nk3y

Description

@c0d1ngm0nk3y

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

  1. create-package --destination target --version 0.0.1

Motivations

Local packaging for testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions