cloudfoundry / java-buildpack

Cloud Foundry buildpack for running Java applications
Apache License 2.0
439 stars 2.58k forks source link

Empty "/deps/<INDEX>" folder when java_buildpack is used as a final buildpack #761

Closed stiliyanv closed 4 years ago

stiliyanv commented 5 years ago

When I push an application with multiple buildpacks, and java_buildpack is used as a final-buildpack, an empty folder is created in deps directory. What is the need for such an empty directory? I believe that this folder should be created during /bin/supply script to provide a set of dependencies, but since there is no such script in java_buildpack, is this folder needed?

stiliyanv commented 5 years ago

After some research, it looks that this is how CF works according to the documentation here. I guess the buildpacks can't control deps/<index> directory.

However, it is still strange why those directories are created for buildpacks without /bin/supply.

nebhale commented 4 years ago

I agree that this is strange, but I don't think that any further work will be done on this as we migrate to Cloud Native Buildpacks.