paketo-buildpacks / php-composer

Apache License 2.0
5 stars 3 forks source link

Add deprecation warning for `buildpack.yml` usage #265

Closed sophiewigmore closed 2 years ago

sophiewigmore commented 2 years ago

Per https://github.com/paketo-buildpacks/rfcs/issues/58 (from RFC 0026) we are switching over the use of buildpack.yml configurations to environment variable-set configurations.

We should start this process for PHP by emitting a deprecation warning via log output about using the buildpack.yml setting that says:

WARNING: Setting Composer configuration through buildpack.yml will be deprecated soon in v1.0.0 release of this buildpack.

The v1.0.0 buildpack release will support setting configuration options through environment variables instead.

We accomplish this in other buildpacks which can be used as an example for this issue.