buildpacks / libcnb

A non-opinionated language binding for the Cloud Native Buildpack Buildpack and Extension specifications
Apache License 2.0
31 stars 13 forks source link

Process type specific environment variables break EnvironmentWriter #158

Closed dmikusa closed 2 years ago

dmikusa commented 2 years ago

The EnvironmentWriter is not creating sub-directories for process-specific environment variables.

This results in an error when you try to write a process specific environment variable:

unable to write layer env.launch /layers/paketo-buildpacks_health-checker/thc/env.launch
unable to write file /layers/paketo-buildpacks_health-checker/thc/env.launch/health-check/THC_PATH.default
open /layers/paketo-buildpacks_health-checker/thc/env.launch/health-check/THC_PATH.default: no such file or directory

This impacts release-1.x as well as main.