Configurable Env Vars and Post Installation Commands from project.toml #84
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These changes collectively enhance the buildpack's flexibility and usability, allowing for more sophisticated configuration and automation during the build process.This pull request introduces several significant changes to the buildpack configuration and package installation process. The main changes include adding support for configuring environment variables and commands for installed packages, updating dependencies, and enhancing the test coverage.
New keys were added to the
project.toml
file to allow the ability to configure package environment variables and post installation commands.env
- a dict {} of key/pairs defining environment variables to be exported to the environment after package installationcommands
- a list of string commands to be executed after package installation. These will be executed in the order they are listed.During the build process, the buildpack will read the
project.toml
file and apply the specified environment variables. The{install_dir}
placeholder will be replaced with the actual paths so the variables are available at bothbuild
andlaunch
phases using [layer environment variables][cnb-environment].The buildpack includes a set of default environment variables for each package, known as
PACKAGE_ENV_VARS
. These default environment variables are applied during the build process. However, you can override these default values by specifying environment variables in the project.toml file.If a package is listed in the project.toml file with environment variables under the env key, those variables will take precedence over the default
PACKAGE_ENV_VARS
.Added unit tests to:
Integration Tests added: