-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistent build failures #148
Comments
To me it looks like an issue with the build script, which essentially runs the serde-precompiler. What do you think I can do to help with it ? |
I haven't checked the versions of the build dependencies. Since this just started happening, it seems like one of them maybe had a patch bump that broke things? |
I am seeing this too, anything I can do to help? |
I believe this is related to dermesser/yup-oauth2#16 , which in turn goes back to serde-deprecated/syntex#33 . |
Workaround: [dependencies]
serde = "0.6.0"
serde_json = "0.6.0"
[build-dependencies]
syntex = "=0.28.0"
serde_codegen = "=0.6.13" Anything later than |
Is there a suggested version of this library to use to avoid this issue. I tried the suggestion above and my build still fails with
edit: I'm using the latest for |
@softprops Something you should be able to do is to just pull this repository, look into the |
This is the patch I applied, but I've only actually generated and used From 79a8e2c9d36b52e4020bb7851a11b8b0cf42ea04 Mon Sep 17 00:00:00 2001
From: Curtis McEnroe <programble@gmail.com>
Date: Sat, 5 Mar 2016 16:03:40 -0500
Subject: [PATCH] Pin serde_codegen to 0.6.13
---
src/mako/Cargo.toml.mako | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mako/Cargo.toml.mako b/src/mako/Cargo.toml.mako
index f124f8d..cdd73be 100644
--- a/src/mako/Cargo.toml.mako
+++ b/src/mako/Cargo.toml.mako
@@ -29,16 +29,16 @@ name = "${util.program_name()}"
hyper = "0.7"
## Must match the one hyper uses, otherwise there are duplicate similarly named `Mime` structs
mime = "0.1.0"
-serde = ">= 0.7.0"
-serde_json = ">= 0.7.0"
+serde = "0.6.0"
+serde_json = "0.6.0"
yup-oauth2 = ">= 0.5.4"
% for dep in cargo.get('dependencies', list()):
${dep}
% endfor
[build-dependencies]
-syntex = { version = ">= 0.23" }
-serde_codegen = { version = ">= 0.6" }
+syntex = "=0.28.0"
+serde_codegen = "=0.6.13"
% if make.depends_on_suffix is not None:
--
2.7.2 |
Everything newer than the ones we see here will cause the error described in #148.
Thanks @programble , I finally managed to get it to compile as well, and am currently publishing new versions to crates.io. It's quite interesting that serialization/deserialization in Rust still seems to be somewhat difficult to achieve and to keep stable, at least from my experience so far. In any case, I will keep the issue open as the root cause of this is not yet fixed. |
Good to see new versions released finally! |
Great! I'm going to give this lib a second spin |
Please note that for now you can compile with nightly to workaround the syntex problem. I am using a line like this to do that: make drive3-cli-cargo ARGS=build --no-default-features --features=nightly Also a new authentication flow was added and set as default, which will make APIs like |
A PR is on the way to fix this issue on stable as well: serde-deprecated/syntex#47 |
Thanks to the merge upstream this issue is now fixed for google-apis-rs as well. Please run something like For completeness, I link the related issue in rust's libsyntax. |
I'm getting intermittent build failures locally and consistent build failures on Travis CI:
https://travis-ci.org/programble/fresh/jobs/110677771
The text was updated successfully, but these errors were encountered: