Skip to content

Add out-of-the-box support for the static stack #770

@robdimsdale

Description

@robdimsdale

Describe the Enhancement

The go buildpack works with the static stack/buildpackless builder, but this feature requires some manual configuration (see #769 for details).

It would be better if the relevant component buildpacks in the Go buildpack could automatically set these environment variables when they detect they are running on the static stack.

Possible Solution

This could look similar to how the rust (cargo) buildpack already does this. Essentially look at the stack.id and set env vars as appropriate. I don't think we even need to consider musl for golang - certainly not for the first iteration.

Motivation

This would enable out-of-the-box support on the static stack, which would lower the barrier for users who want this feature. They wouldn't have to read specific documentation or set specific flags.

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