-
Notifications
You must be signed in to change notification settings - Fork 112
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
[regression] Fatal: Invalid TOML file format: error during execution of cargo metadata
#129
Comments
This was likely broken by workspace support. |
This is the weird part. How can cargo-metadata fail on your project and yet it otherwise works fine? |
I bet this is related to our updating dependent dependencies. Itd be helpful if you could post hhe invalid Cargo.toml so we could see what, if anything, we can do. Dependent version updating can be controlled in the config file or on the command line. See the reference for how to disable it. |
This is the problematic diff. diff --git a/juniper_codegen/Cargo.toml b/juniper_codegen/Cargo.toml
index 6ce783fc..10294daf 100644
--- a/juniper_codegen/Cargo.toml
+++ b/juniper_codegen/Cargo.toml
@@ -20,6 +20,7 @@ syn = { version = "0.15.28", features = ["full", "extra-traits", "parsing"] }
quote = "0.6"
regex = "1"
lazy_static = "1.0.0"
+juniper = {version = "^0.14.0"}
[dev-dependencies]
juniper = { version = "0.13.0", path = "../juniper" } Note: juniper should not be added as a dependency here! Also: the issue happens on |
Yeah, that explains it. We read all dependencies and write them back as See https://github.com/sunng87/cargo-release/blob/master/src/cargo.rs#L92
Weird, it doesn't look like our messing with dependencies was in that version |
My bad, this was a mistake on my part, it indeed only happens with |
Juniper (https://github.com/graphql-rust/juniper/) uses
cargo-release
to test our release pipeline in CI. The most recent release breaks that CI job.Everything was fine with
cargo-release v0.11.2
and it breaks withcargo-release v0.12.1
.You can see the command run and output in our CI.
The text was updated successfully, but these errors were encountered: