cloudfoundry / apt-buildpack

MIT License
31 stars 48 forks source link

Fix tests errors (cflinuxfs3 not included in cf envs) #185

Closed brayanhenao closed 7 months ago

brayanhenao commented 7 months ago

Now that the new CF environments do not come with preloaded buildpacks in their cflinuxfs3 version, when we try to run the apt Buildpack tests, they fail because they have a dependency on the ruby, staticfile, and binary buildpacks.

The ruby buildpack was already provided through a script called scripts/build-ruby.offline-bp.sh, which was responsible for locally packaging the buildpack in its desired version. I reused this logic with some minor changes to support any buildpack passed as a parameter to adjust the requirements of staticfile and binary when the stack is cflinuxfs3.