Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robdimsdale opened this issue May 5, 2023 · 1 comment
Open

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

robdimsdale opened this issue May 5, 2023 · 1 comment

Comments

@robdimsdale
Copy link
Member

robdimsdale commented May 5, 2023

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.

@robdimsdale
Copy link
Member Author

The @paketo-buildpacks/go-maintainers had quorum and reached a majority consensus on moving this forward.

We agreed to start with the absolute simplest solution - described above - and defer any configuration (e.g. with BP_* environment variables) to a later time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant