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

Set env vars for positional args in build and detect #818

Merged
merged 1 commit into from
Mar 4, 2022
Merged

Set env vars for positional args in build and detect #818

merged 1 commit into from
Mar 4, 2022

Conversation

mboldt
Copy link
Contributor

@mboldt mboldt commented Mar 3, 2022

As described in RFC 100, set the following environment variables when
running buildpack executables, which correspond to their positional
arguments.

In detect:

  • CNB_PLATFORM_DIR
  • CNB_BUILD_PLAN_PATH

In build:

  • CNB_LAYERS_DIR
  • CNB_PLATFORM_DIR
  • CNB_BP_PLAN_PATH

Fixes #806.
Fixes #807.

Signed-off-by: Mikey Boldt [email protected]

As described in RFC 100, set the following environment variables when
running buildpack executables, which correspond to their positional
arguments.

In `detect`:

- CNB_PLATFORM_DIR
- CNB_BUILD_PLAN_PATH

In `build`:

- CNB_LAYERS_DIR
- CNB_PLATFORM_DIR
- CNB_BP_PLAN_PATH

Fixes #806.
Fixes #807.

Signed-off-by: Mikey Boldt <[email protected]>
@mboldt mboldt requested a review from a team as a code owner March 3, 2022 16:54
Copy link
Member

@natalieparellano natalieparellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Awesome work @mboldt !

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