Skip to content

Tidy can now check for version conflicts... - #7438

Merged
bors-servo merged 1 commit into
masterfrom
unknown repository
Sep 1, 2015
Merged

bors-servo merged 1 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Aug 28, 2015

Copy link
Copy Markdown

fixes #7133

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 28, 2015
@ghost

ghost commented Aug 28, 2015

Copy link
Copy Markdown
Author

NOTE: This doesn't work yet!

While this sort of fixes what the issue suggests, tidy's current suggestions are quite unhelpful.

screenshot

For now, glutin demands "gl_generator 0.0.26" and hence, that command shouldn't have any effect. So, we gotta wait until glutin updates its Cargo.toml and once all the versions match, we shall include the check_lock function here.

@mbrubeck

Copy link
Copy Markdown
Contributor

Maybe it should just print which packages depend on the older version, if it has that information? Frequently the solution is to upgrade that intermediate package, or submit a patch to it.

@ghost

ghost commented Aug 29, 2015

Copy link
Copy Markdown
Author

Update based on @mbrubeck's suggestion (/cc @larsbergstrom)...

screenshot

Again, this doesn't work yet! We have to include check_lock in the checking_functions when needed.

@ghost ghost changed the title Tidy could now check for version conflicts... Tidy can now check for version conflicts... Aug 29, 2015
@larsbergstrom

Copy link
Copy Markdown
Contributor

@wafflespeanut This looks fantastic! I'm really excited by this. Is the "expected maximum version" the largest number seen so far? So, if you had three versions of gl_generator at 0.0.24, 0.0.26, and 0.0.27, there would be two errors for the 0.0.24 and 0.0.26?

In any case, I'm really happy with how this is coming out for preventing multiple conflicting packages from being brought in. cc @alexcrichton to show him the awesome.


Reviewed 2 of 2 files at r1.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

@ghost

ghost commented Aug 29, 2015

Copy link
Copy Markdown
Author

Thanks. And yeah, there would be two errors on 0.0.24 and 0.0.26 :)

@metajack

metajack commented Sep 1, 2015

Copy link
Copy Markdown
Collaborator

So what's needed to land this?

Also, so happy to see this!

@metajack metajack added S-awaiting-answer Someone asked a question that requires an answer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Sep 1, 2015
@jdm

jdm commented Sep 1, 2015

Copy link
Copy Markdown
Member

I'm hesitant to merge this code without it actually being called anywhere. Maybe we could just exceptions for the current cases that are broken and forbid any new ones from being added?

@ghost

ghost commented Sep 1, 2015

Copy link
Copy Markdown
Author

Done!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 1, 2015
@jdm

jdm commented Sep 1, 2015

Copy link
Copy Markdown
Member

@bors-servo: r+
Thanks!

@ghost

ghost commented Sep 1, 2015

Copy link
Copy Markdown
Author

Thank you! :)

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit da1c858 has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. S-awaiting-answer Someone asked a question that requires an answer. labels Sep 1, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit da1c858 with merge 8b5418f...

bors-servo pushed a commit that referenced this pull request Sep 1, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

@bors-servo
bors-servo merged commit da1c858 into servo:master Sep 1, 2015
@ghost
ghost deleted the cargo-tidy branch September 2, 2015 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make tidy should ensure that we do not have two versions of the same package in Cargo.lock

6 participants