Skip to content
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

Fix cyclical dependencies #935

Closed
wants to merge 3 commits into from
Closed

Conversation

matthewkmayer
Copy link
Member

Demonstrate a fix for #934 .Workaround suggested in rust-lang/cargo#4242 .

@@ -53,7 +53,7 @@ serde_test = "1.0.1"

[dev-dependencies.rusoto_dynamodb]
path = "../services/dynamodb"
version = "0.30"
version = ">= 0.30, < 1.0"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part one of the magic and one line to actually keep.

@@ -19,7 +19,7 @@ serde_derive = "1.0.2"
serde_json = "1.0.1"

[dependencies.rusoto_core]
version = "0.31.0"
version = ">= 0.31"
Copy link
Member Author

@matthewkmayer matthewkmayer Jan 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part two of the magic and another line to actually keep.

(Edit: this actually needs to go in service.rs in the service_crategen folder)

@matthewkmayer
Copy link
Member Author

I've labelled the lines that are relevant to the fix. The other version changes were to demonstrate the fix works:

$ cargo publish --dry-run
    Updating registry `https://github.com/rust-lang/crates.io-index`
...

    Finished dev [unoptimized + debuginfo] target(s) in 66.41 secs
   Uploading rusoto_core v0.31.1 (file:///Users/matthew/Documents/rusoto/rusoto/core)
warning: aborting upload due to dry run

@matthewkmayer
Copy link
Member Author

#936 is the way to do this. 👍

@matthewkmayer matthewkmayer deleted the dynamodb-versions-in-core branch January 24, 2018 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant