-
-
Notifications
You must be signed in to change notification settings - Fork 16
Problem running builder #15
Comments
I think I see what's going on here. The example's Cargo.toml depends on the current checkout of I'm specifically referring to the lines: It's possible that editing the dependency to be It does make sense for the examples to be compiled against the local copy of rust-crowbar, especially for development purposes... but that leads to it not working with the builder and a confusing error. Maybe the builder documentation should mention it doesn't work on the examples, or maybe there's some cleverness would allow a single Cargo.toml to work for both use-cases? Let me know if the above makes sense! |
@euank Thanks! You are right. This was causing the problem. Actually I have seen these lines in Cargo.toml but I have failed to correlate the error message with them. I think it might help if examples also have a readme file which explains how to build them. Nevertheless, after I changed the cargo.toml like this:
I get the following error:
|
It seems to be building if I change python3-sys to |
Hi @OrKoN, The I was able to successfully build and deploy a lambda function using rust-crowbar with the following Dockerfile:
with the following modified build.sh:
|
Thanks @ChristopherMacGown I didn't that even minor versions of Python are not compatible :-) that worked fine for me too. |
I wasn't sure if that was the case either, so I've run a test with just the pyenv 2.7.13 and it fails the same way:
with the base build.sh results in:
|
I used pyenv because at the time of writing that Amazon Linux didn't have a 3.6 build available yet. I wonder if it works fine if we use 2.7.12 in pyenv...? |
Not as far as my testing shows:
|
Well, sounds like pyenv is out for 2.7 then. |
pyenv is also out for 3.6. It fails with I'm prepping a commit which just uses |
For @OrKoN's original issue, you can run examples in the builder like this, from the root of the project:
as the builder script just execs |
Hi!
I have encountered a problem running the builder:
I tried to fix it but it looks like a glitch in cargo. Perhaps someone could help to solve this problem.
Best regards,
Alex
The text was updated successfully, but these errors were encountered: