-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix issues #4798
Fix issues #4798
Conversation
@@ -308,7 +308,7 @@ resolve to 1.0.1 inside the repository instead of trying to download a version | |||
from crates.io. Once 1.0.1 is published on crates.io the `[patch]` section can | |||
be deleted. | |||
|
|||
It's also worth nothing that `[patch]` applies *transitively*. Let's say you use | |||
It's also worth nothing that `[patch]` applies at the *top level*. Let's say you use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This I believe isn't correct, the point of [patch]
is to apply transitively to the entire crate graph.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the second declaration is the incorrect one? (just a few lines below)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sort of. I think the one below just needs to be clarified. The [patch]
section can only be defined at the top-level but its effects are transitive throughout the crate graph.
☔ The latest upstream changes (presumably #4904) made this pull request unmergeable. Please resolve the merge conflicts. |
b797e14
to
36601c3
Compare
Updated. |
@@ -308,7 +308,7 @@ resolve to 1.0.1 inside the repository instead of trying to download a version | |||
from crates.io. Once 1.0.1 is published on crates.io the `[patch]` section can | |||
be deleted. | |||
|
|||
It's also worth nothing that `[patch]` applies *transitively*. Let's say you use | |||
It's also worth nothing that `[patch]` applies at the *transitively*. Let's say you use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stray "at the"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oups, forgot this one...
|
||
In case the dependency you want to override isn't loaded from `crates.io`, you'll have to change a bit how you use `[patch]`: | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may want to mention "toml" as the language?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
36601c3
to
fb12480
Compare
Updated. |
@bors: r+ |
📌 Commit fb12480 has been approved by |
☀️ Test successful - status-appveyor, status-travis |
Fixes #4786.