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
Stick down some versions so it builds #2
Conversation
Thanks! I haven't maintained this project in a while, but I wouldn't be against getting it into a working state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are a few comments! I think the only thing I'd really object to here is adding the tag to screeps-api
, though, if we can avoid that. Thanks for submitting this, though!
default-features = false | ||
features = ["crossterm-backend"] | ||
git = "https://github.com/gyscos/Cursive.git" | ||
tag = "v0.13.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're limiting it to this tag, how about just removing the optional git version altogether? I think the only reason it was here was to avoid bugs in 0.12.1-alpha.0
that were fixed but not released.
I'd keep the screeps-api
git version as that crate is developed concurrently with this one, but this one should go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to bring it back to the state where it definitely built. I'm not sure if this limitation is required actually. It seems like the git source for cargo just compares the version in HEAD's Cargo.toml to the requested version and fails if it doesn't match, which was causing a build failure. Since I wanted to break one thing at a time I just put the tag here.
@@ -13,7 +13,7 @@ err-ctx = "0.2" | |||
fern = "0.5" | |||
hyper = "0.12" | |||
hyper-tls = "0.3" | |||
log = "0.4" | |||
log = "^0.4.8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I understand it, this line should be equivalent to the old one? Or at least, should be equivalent after running cargo update
- all this does is increase the minimum version, which I don't think we should need to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolution conflict with another package that wanted 0.4.8. I have absolutely no idea why that happened though since I agree they should be compatible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that make some sort of sense...? Cargo tries to keep multiple crates using similar versions if it can, but also won't update things implicitly. If you remove this line, does running cargo update
again after doing that fix the conflict or does it still complain?
git = "https://github.com/daboross/rust-screeps-api.git" | ||
tag = "screeps-api-0.6.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there are things in screeps-api
which currently don't build, I think we should fix them there rather than avoiding the update here.
In particular, we're going to need an updated screeps-api to fix #1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, just built locally and I see why you did this. I... don't entirely understand how the screeps-api-0.6.0
tag would work, though, when we're still listing the version dependency as 0.5
?
I think long-term this tag should be removed, but if for now it fixes the build I'm OK with merging it until we update to the later screeps-api version 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It actually doesn't build with tag 0.5 either! What I suspect happened was that since these were developed concurrently, the git HEAD that was supposedly version 0.5 was actually a dev version of 0.6. Which is why I bumped it, because it builds if I do that. The version given to cargo can be increased though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that makes sense! I somehow forgot you'd also bumped the version when I was trying this out locally and the writing the second comment.
With regards to the A better solution would be to fully migrate to async/await and futures 0.3, but I think that's more work. |
Thanks for explaining the reasoning behind the changes - I think this should be reasonable to merge now. |
This is not really "fixing" it entirely since there are still mysterious build failures on rustc 1.44-nightly 2020-04-09, only with
cargo install --path .
, but not withcargo build
. Regardless, this PR causes it to sometimes build.