pandeiro / heroku-buildpack-boot

MIT License
8 stars 4 forks source link

Buildpack not getting through the install_java code #3

Open taylorSando opened 9 years ago

taylorSando commented 9 years ago

When attempting to use even a bare bones app, with just a build.boot in the directory, I'm just getting:

Installing OpenJDK 1.8.../tmp/buildpack_ece3941132503b960455c652ae21d2e0/bin/compile: 192: /tmp/buildpack_ece3941132503b960455c652ae21d2e0/bin/compile: Bad substitution cp: cannot stat '//opt/with_jmap': No such file or directory

! Push rejected, failed to compile BootClojure app

I have forked the code and did some debugging, it's happening here:

Install JDK

javaVersion=$(detect_java_version ${BUILD_DIR}) echo -n "-----> Installing OpenJDK ${javaVersion}..."

Right here

install_java ${BUILD_DIR} ${javaVersion} jdk_overlay ${BUILD_DIR} echo "done"

It's very weird, because the clojure/lein buildpack is using the exact same code as far as I can tell.

pandeiro commented 9 years ago

@taylorSando Thanks for reporting this; as you noted, that entire part of the bin/compile script is taken verbatim from the lein buildpack and I have not yet tested it in this configuration.

If you figure out what it is, or find a fix, could you update this issue?

taylorSando commented 9 years ago

I've added my code to bin/compile and bin/detect.

podviaznikov commented 9 years ago

Having same issue

kirillsalykin commented 9 years ago

+1