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

Add a synthetic dependency on num-traits #5188

Merged
merged 1 commit into from
Mar 15, 2018

Conversation

alexcrichton
Copy link
Member

Right now the rust-lang/rust integration is compiling Cargo twice on dist
builds, once for Cargo and once for the RLS. This is due to a dependency of
Cargo being recompiled with different features when used from the RLS or not.
For now paper over this problem with a synthetic dependency to prevent Cargo
from being compiled twice.

Right now the rust-lang/rust integration is compiling Cargo twice on dist
builds, once for Cargo and once for the RLS. This is due to a dependency of
Cargo being recompiled with different features when used from the RLS or not.
For now paper over this problem with a synthetic dependency to prevent Cargo
from being compiled twice.
@rust-highfive
Copy link

r? @matklad

(rust_highfive has picked a reviewer for you, use r? to override)

@matklad
Copy link
Member

matklad commented Mar 15, 2018

@bors r+

Hehe, I still hope that one day RLS will just call cargo metadata :)

@bors
Copy link
Collaborator

bors commented Mar 15, 2018

📌 Commit 841f20a has been approved by matklad

@bors
Copy link
Collaborator

bors commented Mar 15, 2018

⌛ Testing commit 841f20a with merge 6bdb5c5...

bors added a commit that referenced this pull request Mar 15, 2018
Add a synthetic dependency on num-traits

Right now the rust-lang/rust integration is compiling Cargo twice on dist
builds, once for Cargo and once for the RLS. This is due to a dependency of
Cargo being recompiled with different features when used from the RLS or not.
For now paper over this problem with a synthetic dependency to prevent Cargo
from being compiled twice.
@bors
Copy link
Collaborator

bors commented Mar 15, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: matklad
Pushing 6bdb5c5 to master...

@bors bors merged commit 841f20a into rust-lang:master Mar 15, 2018
matklad added a commit to matklad/rust that referenced this pull request Mar 16, 2018
This notably includes

* rust-lang/cargo#5152
* rust-lang/cargo#5188

The first one switches cargo from docopt to clap (
we also update to the latest calp in this repository),
the second one should help us to unify feature flags
for Cargo itself and RLS, and build Cargo libray only
once.
@ishitatsuyuki
Copy link
Contributor

I strongly disagree that we should be doing things like this.

Now that you're intentionally doing a workaround, we should instead reopen and resolve #4048.

@alexcrichton
Copy link
Member Author

@ishitatsuyuki if you'd like please open a feature request and not a bug report

@alexcrichton alexcrichton deleted the urgh-again branch March 19, 2018 14:51
@ishitatsuyuki
Copy link
Contributor

@alexcrichton How does that differ? Also I think #4048 is in the format of a feature request.

@alexcrichton
Copy link
Member Author

Ok, in that case mind opening a new issue anyway with fresh information?

@ishitatsuyuki
Copy link
Contributor

Done as #5210.

@ehuss ehuss added this to the 1.26.0 milestone Feb 6, 2022
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.

6 participants