Skip to content

Use of buildflag in general to circumvent missing shell on run-stack #368

Open
@nicolasbender

Description

@nicolasbender

For the implementation of buildpack spec 0.9 shell processes should no longer implicitly be expected (RFC 93). During construction of build arguments, buildflag -H:+StaticExecutableWithDynamicLibC gets added which seems to be necessary for stacks without a shell.

Is there a reason why this buildflag should not be used in general?

Describe the Enhancement

Using -H:+StaticExecutableWithDynamicLibC in general would make this buildpack independent from the existence of a shell of the underlying run-stack.

Possible Solution

Remove the if-condition for a tiny-stack.

Motivation

Using stacks from noble onwards don't differentiate between different build-stacks and don't have necessarily a stack-id to rely on. This could lead to using this buildpack with a tiny-run-stack without a shell included and ending up with a failing startup at run time.

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