-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Store dependencies as edges of the graph #5428
Conversation
@bors: r+ Awesome, thanks! Much nicer now that it's always |
📌 Commit 8164be2 has been approved by |
⌛ Testing commit 8164be2 with merge 76d3e1e2e87756071fe726ab6cf8d19773c2e556... |
💔 Test failed - status-travis |
@bors: retry ?? |
⌛ Testing commit 8164be2 with merge 72a7e06c290dad6248d4c1ce8a424316256ec7ba... |
💔 Test failed - status-travis |
@bors: retry |
Store dependencies as edges of the graph r? @alexcrichton
☀️ Test successful - status-appveyor, status-travis |
I think I am confused by this. What is being stored? Why a For some background I was trying to use this to improve the resolver error messages. Currently they are like: cargo/tests/testsuite/build.rs Lines 1356 to 1358 in 0b530c3
But if we had a link to the dependency that caused the relationship it could be improved to: (wording needs improvement)
|
Oh that'd be awesome to include this info in error messages! I originally though it was gonna be [dependencies]
foo = "0.1"
[target.foo.dependencies]
foo = "0.1"
[build-dependencies]
foo = "0.1"
# ... etc |
Ah, so it is a |
@Eh2406 indeed! |
Explain why we need a `Vec<Dependency>` in `Resolve`. Looks like everyone, who sees it, asks the same question, so let's add an explanation! cc #5428 (comment)
r? @alexcrichton