Open schneems opened 1 week ago
We should probably move this issue over to the lifecycle. It might be hard to give such a detailed error message, but we could append something like "check the provided order to ensure that buildpacks providing dependencies run before the buildpacks that require them"
Yes, I was thinking about how to get such detailed information without doing a lot of work, but I am not sure if it is possible. I like the idea, but the implementation is not straight forward
Summary
The build plan output when passing it two buildpacks does not make it clear that order can be a problem
Reproduction
Steps
Follow steps to install https://github.com/heroku/buildpacks-ruby/blob/aaa72f317ee7b4700de35ea27112c1ad15334def/CONTRIBUTING.md#development
Current behavior
When I run that command, I get a failure
Which, was odd because
heroku/nodejs-engine
providesnode
and you can see from the output that it passes detection.The issue turned out to be the order of the buildpacks was incorrect, it should have been using Node first:
Expected behavior
I expect that minor mistakes in a build plan (from package.toml or passed in via CLI) are highlighted by the failure output. Ideally I would get a message like:
Environment
pack info
docker info