-
Notifications
You must be signed in to change notification settings - Fork 29
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
It seems that .cargo is checked into git and it shouldn't be. #367
Comments
Based on the cargo documentation, this is the only way to recursively override dependencies. But, since rust-lang/cargo#2385 landed a week ago, we can define it in Cargo.toml. One note though, we can can only override a package with a given version. As of today, iron is used by these packages:
Cargo.lock lists 2 version used: 0.3.0 and 0.2.6. We can't bypass 2 versions by the same package => Cargo checked Cargo.toml to see if the version of the crates match. Hence, we have to clean our Cargo.lock to make sure we only use 0.2.6. |
I noticed there's a bad dependency in staticfile. It depends on mount I wonder if it would be easier to upgrade our dependencies to iron 0.3.0. Would the CORS patch still apply to that version, @samgiles @ferjm ? |
Which CORS patch? |
The problem is, iron upstream doesn't support SNI, the fork that the .cargo/config file points to does. This change hasn't landed upstream yet so there isn't an "official" crates version of Iron we can use. I had issues where Cargo would use crates as the source of all truth, ignoring what you'd specify local for top level dependencies, leading to things like, |
My apologies I mixed CORS and SNI. The purpose of the solution would be to keep the forked version (locally), but upgrade it to v0.3.0 and apply the SNI changes on it. Then, we would be able to change Cargo.toml to force |
@JohanLorenzo certainly seems like it should work, at least with Cargo nightly. |
The ideal solution involves working to get the update merged upstream - but an API change was suggested - so I've put it off for now. |
It also removes .cargo. Fixes #367
It means that we can't use it to point other stuff locally without running into problems with git.
Shouldn't we just specify in the Cargo.toml file that it's using a local fork?
The text was updated successfully, but these errors were encountered: