Comments (6)
Glad to hear it's working!
from heroku-buildpack-rust.
Ouch, I'm sorry to see that. Did this work correctly before? Is it a new project? Have you changed anything recently? Have you forked the buildpack?
I've tried running the relevant portion of the script manually, and everything seems to be working fine, which only makes this more mysterious. :-(
This looks almost like a rustup
issue, because the -----> Using rustup to install Rust channel beta
line is correct.
One possible solution is to change the following in bin/compile
:
set -eu
to:
set -euo xtrace
...and use the more detailed output to see what the script is doing step-by-step.
from heroku-buildpack-rust.
Forked, modified the line, re-deployed and here is the new log :
+ '[' -z x ']'
+ '[' 0 -ne 1 ']'
+ '[' '!' -z ']'
+ '[' '!' -f /tmp/build_72ed0fb49953b7996b0ca56bae29055f/king-numsgil-numsgil-co-f1b69b7922efdb29d5cc312f26e73568e9c9fcd7//Cargo.toml ']'
+ '[' '!' -z ']'
+ cat
+ . /app/tmp/buildpacks/a242fc781c97920123b6a3a24c43752a5603c0420ace2c6ea6b043a6488281bc124f2c9b7a7e31d253287b154b3fe4efed062216eb9a87936e761f265b7fd956/export
++ export RUSTUP_HOME=/app/tmp/cache/multirust
++ RUSTUP_HOME=/app/tmp/cache/multirust
++ export CARGO_HOME=/app/tmp/cache/cargo
++ CARGO_HOME=/app/tmp/cache/cargo
++ PATH=/app/tmp/cache/cargo/bin:/usr/local/bin:/usr/bin:/bin:/tmp/codon/vendor/bin
+ mkdir -p /app/tmp/cache
+ cd /app/tmp/cache
+ '[' -d /app/tmp/cache/cargo ']'
+ echo '-----> Downloading rustup'
-----> Downloading rustup
+ curl https://sh.rustup.rs -sSf
+ chmod u+x rustup.sh
+ echo '-----> Using rustup to install Rust channel beta
-----> Using rustup to install Rust channel beta
+ ./rustup.sh -y --default-toolchain $'beta\r'
info: downloading installer
error: invalid toolchain name: 'beta
! Push rejected, failed to compile Rust app.
! Push failed
It was working last week, I was not using a fork (now I am, obviously), I shut down my app and made a new one using the same sources and the problem's still there.
Kinda lost here... Thanks for your time!
P.S. : I'm very new to this Heroku thingy. Learning the platform as well as Rust. The possibility of a stupid mistake is far from zero!
from heroku-buildpack-rust.
Make sure your RustConfig uses Unix line endings. It looks you you're using Windows line endings in a Unix shell script, which will fail in strange and terrible ways. Not an obvious one to diagnose!
from heroku-buildpack-rust.
If that doesn't fix it, it might have snuck in upstream with a pull request. :-( Let me know if that fixes it.
from heroku-buildpack-rust.
That was it! Thanks a lot!
from heroku-buildpack-rust.
Related Issues (20)
- VERSION=1.X not supported anymore HOT 1
- Build failing on Heroku HOT 3
- Register in buildpack registry HOT 1
- Not able to build nightly HOT 12
- Cargo missing? HOT 2
- Add support for custom ssh keys HOT 2
- Cannot find diesel during Heroku release step HOT 19
- Cannot find lsqlite3 HOT 5
- Need help! Error R10 - Boot timeout -> failed to bind to $PORT within 60 seconds HOT 4
- How to compile WASM? HOT 1
- Build failing because of openssl
- Cannot get nightly to build HOT 2
- error: reached the type-length limit HOT 4
- Old targets are left behind
- Timeout on Build HOT 3
- Add instructions on how to use sqlx migrations HOT 1
- Option to keep source files of dependencies after compile HOT 2
- Support for `WEB_CONCURRENCY`
- Add support for Trunk
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-rust.