emk / heroku-buildpack-rust

A buildpack for Rust applications on Heroku, with full support for Rustup, cargo and build caching.
522 stars 186 forks source link

Build failing because of openssl #48

Closed AgathaSorceress closed 4 years ago

AgathaSorceress commented 4 years ago

I don't know if this is the right place to report this, but it compiles on my machine and doesn't when I try to push. I'm getting this error:

Compiling serde_codegen_internals v0.14.2

error: failed to run custom build command for `openssl v0.9.24`
Caused by:
  process didn't exit successfully: `/app/tmp/cache/target/release/build/openssl-6cb40b2d37c6afdc/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /app/tmp/cache/cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24/build.rs:16:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
warning: build failed, waiting for other jobs to finish...
error: build failed

 !     Push rejected, failed to compile Rust app.
 !     Push failed

If there is any info I forgot to include please let me know.

Edit: solved by adding heroku-buildpack-openssl before the rust buildpack.