Skip to content

Force different metadata for sysroot crates#269

Merged
bors[bot] merged 2 commits into
japaric:masterfrom
roblabla:fix-metadata
Dec 3, 2019
Merged

Force different metadata for sysroot crates#269
bors[bot] merged 2 commits into
japaric:masterfrom
roblabla:fix-metadata

Conversation

@roblabla

Copy link
Copy Markdown
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

RalfJung commented Dec 3, 2019

Copy link
Copy Markdown
Collaborator

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?

Comment thread src/sysroot.rs Outdated
@jethrogb

jethrogb commented Dec 3, 2019

Copy link
Copy Markdown
Collaborator

@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

RalfJung commented Dec 3, 2019

Copy link
Copy Markdown
Collaborator

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

bors Bot commented Dec 3, 2019

Copy link
Copy Markdown
Contributor

Build succeeded

@bors bors Bot merged commit 394d272 into japaric:master Dec 3, 2019
@roblabla

roblabla commented Dec 7, 2019

Copy link
Copy Markdown
Contributor Author

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

@RalfJung

RalfJung commented Dec 8, 2019

Copy link
Copy Markdown
Collaborator

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