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

Force different metadata for sysroot crates #269

Merged
merged 2 commits into from
Dec 3, 2019

Conversation

roblabla
Copy link
Contributor

If the sysroot and project share a dependency, it might cause conflicts, leading to confusing cargo errors. See https://github.com/roblabla/xargo-reproducer for a reproducer of the issue. This is the same patch as #217 .

Fixes #261

I have a way to reproduce the issue this time around (see the issue), but I'm having a hard time figuring out how to properly integrate it within xargo's smoketest. I don't think it's really possible to do in a robust way, actually...

@roblabla roblabla changed the title Fix metadata Force different metadata for sysroot crates Nov 29, 2019
@RalfJung
Copy link
Collaborator

RalfJung commented Dec 3, 2019

Thanks for all the extra research! You convinced me that this is a reasonable approach. It would be better to have a test-case, but it seems that is not realistic -- ultimately that means that if this breaks it'll be on you to detect and help fix the problem, but given the low amount of activity here I guess that is not too much of a burden.

@jethrogb what do you think?

src/sysroot.rs Outdated Show resolved Hide resolved
@jethrogb
Copy link
Collaborator

jethrogb commented Dec 3, 2019

@jethrogb what do you think?

I don't have time to look into this in too much detail. I find #261 (comment) convincing and I support making xargo more like the standard compiler build flow in that regard.

@RalfJung
Copy link
Collaborator

RalfJung commented Dec 3, 2019

Thanks!

bors r+

bors bot added a commit that referenced this pull request Dec 3, 2019
269: Force different metadata for sysroot crates r=RalfJung a=roblabla

If the sysroot and project share a dependency, it might cause conflicts, leading to confusing cargo errors. See https://github.com/roblabla/xargo-reproducer for a reproducer of the issue. This is the same patch as #217 .

Fixes #261 

I have a way to reproduce the issue this time around (see the issue), but I'm having a hard time figuring out how to properly integrate it within xargo's smoketest. I don't think it's really possible to do in a robust way, actually...

Co-authored-by: roblabla <unfiltered@roblab.la>
@bors
Copy link
Contributor

bors bot commented Dec 3, 2019

Build succeeded

@bors bors bot merged commit 394d272 into japaric:master Dec 3, 2019
@roblabla
Copy link
Contributor Author

roblabla commented Dec 7, 2019

Hey, would it be possible to release a new version with this change please? 🙏

@RalfJung
Copy link
Collaborator

RalfJung commented Dec 8, 2019

Preparing a new release at #270

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.

Trouble with crates duplicated between the sysroot and the project
3 participants